Function at 0x40c140
Capabilities:
Reference sql statements
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [0x476ecf4]
sub esp, 0x854
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x40c160
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
mov eax, dword [0x476edd4]
test eax, eax
jle 0x40c179
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
lea eax, [esp + 0x3c]
push 0
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x44]
push ecx
lea eax, [esp + 0x4c]
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
call fcn.004265e0
add esp, 0x24
test eax, eax
jne 0x40c1ba
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [0x516f90]
mov ebp, 1
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push 0x5187c8
push 0x476ed38
lea eax, [esp + 0x6c]
push str.SELECT_idlist_FROM_GATC__sKCOM_IP_m_WHERE_idestring_s
push eax
mov dword [0x476edd4], 0
call ebx
add esp, 0x10
lea edx, [esp + 0x64]
push ebp
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
xor eax, eax
test edi, edi
sete al
test eax, eax
mov dword [0x476ecf4], eax
jne 0x40c412
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
test al, al
jne 0x40c412
mov al, byte [edi + 4]
test al, al
jne 0x40c2cd
mov eax, dword [edi]
push ebp
mov ecx, edi
call dword [eax + 0x10]
call fcn.0045f9d8
mov ecx, dword [str.5.5.232.5]
push eax
push ecx
push 0x476ed38
lea edx, [esp + 0x70]
push str.UPDATE_GATC__sKCOM_IP_m_SET_kcomver_s_WHERE_idlist_d
push edx
mov dword [0x476edd4], eax
call ebx
add esp, 4
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
mov eax, dword [0x476edd4]
lea ecx, [esp + 0x64]
push eax
push 0x476ed38
push str.DELETE_FROM_GATC__sKCOM_IP_WHERE_idlist_d
push ecx
call ebx
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
jmp 0x40c39f
push 0x476ed38
lea ecx, [esp + 0x68]
push str.SELECT_MAX_idlist__FROM_GATC__sKCOM_IP_m
push ecx
call ebx
add esp, 0xc
lea edx, [esp + 0x64]
push 1
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x24], 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 0x40c39d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x24]
test al, al
jne 0x40c39d
mov al, byte [esi + 4]
test al, al
jne 0x40c388
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x10]
call fcn.0045f9d8
mov ecx, dword [str.5.5.232.5]
inc eax
push ecx
push 0x523a2c
push 0x5187c8
push eax
push 0x476ed38
lea edx, [esp + 0x78]
push str.INSERT_INTO_GATC__sKCOM_IP_m__idlist_idestring_deskcom_kcomver_cpccchk__VALUES___d__s__s__s_foostrings_
push edx
mov dword [0x476edd4], eax
call ebx
add esp, 0xc
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov ebp, ecx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
test esi, esi
je 0x40c39f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x40c39f
xor ebp, ebp
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x1c]
test edi, edi
je 0x40c3b2
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
test ebp, ebp
je 0x40c414
mov eax, dword [0x476eddc]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], ebx
jl 0x40c4ec
mov edi, 0x559d78
mov dword [esp + 0x14], edi
mov eax, dword [edi]
mov dword [esp + 0x18], 0
test eax, eax
jle 0x40c4c7
add edi, 4
mov esi, 0x46f2a8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40c437
test cl, cl
je 0x40c40e
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40c437
add eax, 2
add esi, 2
test cl, cl
jne 0x40c3ee
xor eax, eax
jmp 0x40c43c
xor ebp, ebp
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x1c]
push 0x46054d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40c4ab
mov ecx, dword [0x486464]
mov edx, dword [0x476edd4]
lea eax, [esp + 0x3c]
add ebx, 0xa
push eax
push 0x514f20
push ecx
push edi
push ebx
push edx
push 0x476ed38
lea eax, [esp + 0x80]
push str.INSERT_INTO_GATC__sKCOM_IP__idlist_cproword_ipaddress_ipport_ltbadge_datora_cpccchk__VALUES___d__d__s__d__s__s_foostrings_
push eax
mov dword [0x486470], 0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00445210
mov ecx, dword [0x516f90]
mov eax, dword [ecx]
call dword [eax + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov ebp, ecx
test ebp, ebp
je 0x40c4ec
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc eax
add edi, 0x10
mov ecx, dword [edx]
mov dword [esp + 0x18], eax
cmp eax, ecx
jl 0x40c3e7
mov edi, edx
test ebp, ebp
je 0x40c4ec
mov eax, dword [esp + 0x10]
mov ecx, dword [0x476eddc]
inc eax
add edi, 0x119c
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edi
jle 0x40c3d2
mov eax, dword [0x486470]
test eax, eax
je 0x40c54c
mov ecx, dword [0x476edd4]
lea eax, [esp + 0x3c]
push eax
push 0x514f20
add ebx, 0xa
push str.127.0.0.1
push ebx
push ecx
push 0x476ed38
lea edx, [esp + 0x7c]
push str.INSERT_INTO_GATC__sKCOM_IP__idlist_cproword_ipaddress_ltbadge_datora_cpccchk__VALUES___d__d__s__s__s_foostrings_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x74]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00445210
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x10]
xor ecx, ecx
cmp eax, 1
sete cl
mov ebp, ecx
test ebp, ebp
je 0x40c414
mov ecx, dword [0x516f90]
mov edx, dword [ecx]
call dword [edx + 0x18]
jmp 0x40c41f