Function at 0x40853b
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0
mov eax, 6
mov ebx, 0x470f80
call fcn.004129c8
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40859c
push ebx
call fcn.004129a4
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 1
push 1
mov eax, 7
mov ebx, 0x471270
call fcn.004129c8
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4085da
push ebx
call fcn.004129a4
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [0x61e9a0]
call fcn.0040186e
mov eax, 0
cmp eax, ecx
jl 0x4085ff
push 1
call fcn.004129aa
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
test eax, eax
je 0x408625
push eax
mov ebx, eax
call fcn.004011f0
inc eax
push eax
call fcn.0041299e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x408636
push ebx
call fcn.004129a4
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x524ce2
push dword [ebp - 0xc]
push str.SELECT__FROM_pc_WHERE_POS_IP
mov ecx, 3
call fcn.0040125b
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40866b
push ebx
call fcn.004129a4
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x408682
mov eax, 0x51fb94
push eax
push 0x80000301
push 0
push dword [0x61e9d4]
push 2
mov eax, 5
mov ebx, 0x46e420
call fcn.004129c8
add esp, 0x1c
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4086b4
push 0x80000301
push 0
push dword [0x61e9d4]
push 1
mov eax, 5
mov ebx, 0x46e4e0
call fcn.004129c8
add esp, 0x10
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov eax, 5
mov ebx, 0x46f110
call fcn.004129c8
add esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40878a
push 0x524ce2
push dword [ebp - 4]
push str._POS_NAME
push dword [ebp - 8]
push str._POS_MAC
push dword [ebp - 0xc]
push str.POS_IP
mov ecx, 7
call fcn.0040125b
add esp, 0x1c
mov dword [ebp - 0x1c], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x408749
mov eax, 0x51fb94
push eax
push reloc.WS2_32.dll_connect
push 0
push 0x524d26
push 0x80000301
push 0
push dword [0x61e9d4]
push 3
mov eax, 5
mov ebx, 0x46f1b0
call fcn.004129c8
add esp, 0x28
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40878a
push ebx
call fcn.004129a4
add esp, 4
push 0
mov ebx, 0x414ef0
call fcn.00412998
add esp, 4
push 0x524ce2
push dword [0x61e9f4]
push str.SYTH
mov ecx, 3
call fcn.0040125b
add esp, 0xc
mov dword [ebp - 0x1c], eax
push 0x524ce2
push dword [ebp - 0xc]
push str.POS_IP
mov ecx, 3
call fcn.0040125b
add esp, 0xc
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4087ec
mov eax, 0x51fb94
push eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x408800
mov eax, 0x51fb94
push eax
push reloc.WS2_32.dll_connect
push 0
push 0x524d26
push 0x80000301
push 0
push dword [0x61e9d4]
push 4
mov eax, 5
mov ebx, 0x46f2f0
call fcn.004129c8
add esp, 0x34
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x408841
push ebx
call fcn.004129a4
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x408851
push ebx
call fcn.004129a4
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov eax, 5
mov ebx, 0x46e530
call fcn.004129c8
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x408882
push ebx
call fcn.004129a4
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x408892
push ebx
call fcn.004129a4
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x4088a2
push ebx
call fcn.004129a4
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4088b2
push ebx
call fcn.004129a4
add esp, 4
mov esp, ebp
pop ebp
ret