Function at 0x433ed0
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x820
push ebx
push ebp
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x433ef2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x820
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esp + 0x834]
mov edi, 0x514f20
mov dword [esp + 0x10], esi
lea eax, [ebx + ebx*2]
lea ecx, [ebx + eax*4]
xor eax, eax
shl ecx, 4
add ecx, ebx
lea ebx, [ebx + ecx*2]
or ecx, 0xffffffff
shl ebx, 2
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebx + 0x492024], esi
mov dword [ebx + 0x492028], esi
lea edx, [ebx + 0x49202c]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x18], edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
lea edx, [ebx + 0x49222c]
rep movsb byte es:[edi], byte [esi]
mov edi, 0x514f20
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], edx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x838]
push ecx
push 0x476ed38
push str.SELECT_idcontrol_idevent_ctrlparms_evntparms_FROM_GATC__sACTION_WHERE_idaction_d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x30]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x4340c5
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x24]
test al, al
jne 0x4340c5
mov al, byte [ebp + 4]
test al, al
jne 0x4340b0
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 0x10]
call fcn.0045f9d8
mov dword [ebx + 0x492024], eax
mov eax, dword [ebp]
push 2
mov ecx, ebp
call dword [eax + 0x10]
call fcn.0045f9d8
mov dword [ebx + 0x492028], eax
mov edx, dword [ebp]
lea eax, [esp + 0x20]
push 3
push eax
mov ecx, ebp
call dword [edx + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00445280
push 0x46e08c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov eax, dword [ebp]
lea ecx, [esp + 0x20]
push 4
push ecx
mov ecx, ebp
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00445280
push 0x46e08c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
mov dword [esp + 0x10], 1
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x1c]
test ebp, ebp
je 0x4340c5
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x820
ret