Function at 0x42e840
Capabilities:
Reference sql statements

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x818
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x42e860
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x818
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x82c]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push eax
push 0x476ed38
lea ecx, [esp + 0x30]
push str.SELECT_idkcom_FROM_GATC__sKCOM_m_WHERE_idpckcom_d
push ecx
mov dword [esp + 0x20], 0
xor edi, edi
call ebx
add esp, 0x10
lea edx, [esp + 0x28]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
xor eax, eax
test esi, esi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42ea22
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x42ea22
mov al, byte [esi + 4]
test al, al
jne 0x42e8f3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov edi, eax
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x42e906
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test edi, edi
jle 0x42e9f9
push edi
push 0x476ed38
lea ecx, [esp + 0x30]
push str.SELECT_ipaddress_FROM_GATC__sKCOM_IP_WHERE_idlist_d
push ecx
call ebx
add esp, 0x10
lea edx, [esp + 0x28]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ebp, eax
xor eax, eax
test ebp, ebp
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x42ea22
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x24]
test al, al
jne 0x42ea22
mov al, byte [ebp + 4]
test al, al
jne 0x42e9dc
mov ebx, 0x45ed4a8
mov esi, dword [esp + 0x10]
mov eax, dword [ebp]
lea ecx, [esp + 0x18]
push 1
inc esi
push ecx
mov ecx, ebp
mov dword [esp + 0x18], esi
add ebx, 0x10
call dword [eax + 0x14]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
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 + 0x18]
call fcn.00445280
push 0x46e08c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrTrimA]
cmp ebx, 0x45ed548
je 0x42e9dc
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x20]
mov al, byte [ebp + 4]
test al, al
je 0x42e975
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 0x1c]
test ebp, ebp
je 0x42e9f1
mov eax, dword [ebp]
push 1
mov ecx, ebp
call dword [eax]
mov eax, dword [esp + 0x10]
test eax, eax
jl 0x42ea2a
mov edi, 0x514f20
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x830]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x42ea68
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [0x516f90]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x24]
mov edi, dword [eax + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x830]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00445280
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x818
ret