Function at 0x407395
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
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
mov dword [ebp - 0x1c], 0
cmp dword [0x61e994], 0
jne 0x4073fb
mov eax, str.SELECT__FROM_ad_WHERE_KSRQ___NOW___AND_JSRQ___NOW__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4073f2
push ebx
call fcn.004129a4
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x407415
mov eax, str.SELECT__FROM_ad_WHERE_KSRQ___NOW___AND_JSRQ___NOW__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407411
push ebx
call fcn.004129a4
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x407428
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 - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x40745a
push 0x80000301
push 0
push dword [0x61e9d4]
push 1
mov eax, 5
mov ebx, 0x46e4e0
call fcn.004129c8
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov eax, 5
mov ebx, 0x46f110
call fcn.004129c8
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4074f1
mov dword [0x61e99c], 1
mov eax, 0x524c0c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403bb8
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4074da
push ebx
call fcn.004129a4
add esp, 4
push 0
mov ebx, 0x414ef0
call fcn.00412998
add esp, 4
jmp 0x4076d6
mov dword [0x61e99c], 0
push 0x30004
push 0x160101dd
push 0x52010001
push 1
mov eax, 2
mov ebx, 0x463900
call fcn.004129c8
add esp, 0x10
mov eax, dword [ebp - 0xc]
xor ecx, ecx
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4076b2
push reloc.WS2_32.dll_connect
push 0
lea eax, [ebp - 0x14]
push eax
push reloc.WS2_32.dll_connect
push 0
push 0x5201d4
push 0x80000301
push 0
push dword [ebp - 8]
push 3
mov eax, 5
mov ebx, 0x46e580
call fcn.004129c8
add esp, 0x28
push 0x80000301
push 0
lea eax, [ebp - 0x18]
push eax
push reloc.WS2_32.dll_connect
push 0
push str.BFMS
push 0x80000301
push 0
push dword [ebp - 8]
push 3
mov eax, 5
mov ebx, 0x46e580
call fcn.004129c8
add esp, 0x28
mov ebx, 0xc
call fcn.004010e7
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4075c8
mov eax, 0x51fb94
push eax
push 0
push 0
push 0
push 0x30004
push 0x160101dd
push 0x52010001
push 7
mov eax, 2
mov ebx, 0x463810
call fcn.004129c8
add esp, 0x58
mov dword [ebp - 0x1c], eax
push 0x80000301
push 0
push dword [ebp - 0x18]
push 1
mov ebx, 0x413dc0
call fcn.00412998
add esp, 0x10
mov dword [ebp - 0x20], eax
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40762a
mov eax, 0x51fb94
push eax
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 0x1c]
push 0x30004
push 0x160101dd
push 0x52010001
push 4
mov eax, 2
mov ebx, 0x4637c0
call fcn.004129c8
add esp, 0x34
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x407677
push ebx
call fcn.004129a4
add esp, 4
push 0
mov ebx, 0x414ef0
call fcn.00412998
add esp, 4
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov eax, 5
mov ebx, 0x46f150
call fcn.004129c8
add esp, 0x10
pop eax
pop ebx
pop ecx
jmp 0x40752d
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov eax, 5
mov ebx, 0x46e530
call fcn.004129c8
add esp, 0x10
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4076e6
push ebx
call fcn.004129a4
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4076f6
push ebx
call fcn.004129a4
add esp, 4
mov esp, ebp
pop ebp
ret