Function at 0x47f5af
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x47f5d4
push 0x117
push 0x5191e8
push 0x510198
jmp 0x47f606
cmp dword [esi + 0xc], 0
jne 0x47f5eb
push 0x118
push 0x5191e8
push 0x50ba18
jmp 0x47f606
call fcn.00480a73
test eax, eax
mov dword [esi + 4], eax
jne 0x47f61d
push 0x11b
push 0x5191e8
push 0x50c8d0
push 0x50a2f0
push 0x508530
call fcn.00401466
add esp, 0x14
jmp 0x47f7e3
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
push 0x5146fc
push 0x5191c4
push 0x50c994
lea eax, [ebp - 0x400]
push 0x400
push eax
call fcn.004bb643
push dword [esi + 8]
and byte [ebp - 1], 0
call fcn.00404bcb
add esp, 0x1c
mov ecx, eax
call fcn.00404b9c
mov edx, dword [eax]
lea ecx, [ebp - 0x400]
push 1
push ecx
mov ecx, eax
call dword [edx + 4]
test eax, eax
je 0x47f6d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov eax, dword [esi + 4]
push dword [esi + 8]
mov edi, dword [esi + 0xc]
mov ebx, dword [eax]
call fcn.00404bcb
pop ecx
mov ecx, eax
call fcn.00404b9c
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
call dword [ebx + 0x24]
mov ecx, dword [esi + 4]
test al, al
mov eax, dword [ecx]
je 0x47f7dc
push dword [ebp + 8]
push 1
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push 2
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
push dword [ebp + 0x10]
mov eax, dword [ecx]
push 3
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x28]
jmp 0x47f754
push dword [esi + 8]
call fcn.00404bcb
mov edi, eax
add eax, 4
neg edi
sbb edi, edi
pop ecx
mov ecx, dword [esi + 0xc]
and edi, eax
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [esi + 4]
push eax
call dword [ebx + 0x1c]
test al, al
je 0x47f7d7
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edi, dword [eax]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push 0
call dword [edi + 0x14]
mov ecx, dword [esi + 4]
push dword [ebp + 8]
mov eax, dword [ecx]
push 1
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push 2
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
push dword [ebp + 0x10]
mov eax, dword [ecx]
push 3
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, esi
call fcn.0042a360
push dword [esi + 8]
mov edi, eax
call fcn.00404bcb
pop ecx
mov ecx, eax
call fcn.0040c6d1
test edi, edi
jne 0x47f775
xor ebx, ebx
jmp 0x47f793
mov ecx, dword [eax + 4]
push edi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
je 0x47f793
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
push 1
push 1
push 0xa
call dword [eax + 0x10]
mov eax, dword [esi + 0xc]
mov edi, dword [esi + 0xc]
add eax, 8
add edi, 8
mov dword [ebp + 0xc], eax
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x28]
push eax
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.0047f7ec
push 1
mov ecx, esi
call fcn.0047f90b
test ebx, ebx
je 0x47f7d3
push dword [esi + 0xc]
mov ecx, ebx
call fcn.0043721e
mov al, 1
jmp 0x47f7e5
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 4]
and dword [esi + 4], 0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc