Function at 0x47fec9
Capabilities:
Reference sql statements

Disassembly:
mov eax, 0x4e5170
call fcn.004baf44
sub esp, 0x81c
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x47ff0a
push 0x204
push 0x5191e8
push 0x50c8d0
push 0x50a2f0
push 0x508530
call fcn.00401466
add esp, 0x14
jmp 0x48016d
mov ecx, edi
call fcn.0042a360
push dword [edi + 8]
mov esi, eax
call fcn.00404bcb
pop ecx
mov ecx, eax
call fcn.0040c6d1
test esi, esi
je 0x47ff36
mov ecx, dword [eax + 4]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
test esi, esi
jne 0x47ff47
push 0x207
push 0x5191e8
push 0x50d7bc
jmp 0x47fef3
push 5
mov ecx, esi
call fcn.00436c3e
push dword [edi + 8]
mov dword [ebp - 0x14], eax
call fcn.00404bcb
pop ecx
mov ecx, eax
call fcn.0040c644
mov edx, dword [eax]
push dword [ebp - 0x14]
mov ecx, eax
call dword [edx + 0x48]
test eax, eax
jne 0x48016d
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
push 0x64
lea eax, [ebp - 0x428]
push 0x519474
push eax
call fcn.004bafeb
push dword [edi + 8]
call fcn.00404bcb
add esp, 0x14
mov ecx, eax
call fcn.00404b9c
mov edx, dword [eax]
lea ecx, [ebp - 0x428]
push 1
push ecx
mov ecx, eax
call dword [edx + 4]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x10], ebx
je 0x480097
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x68]
cmp eax, 1
ja 0x47ffdc
mov eax, dword [ebx]
push 0x514fd8
mov ecx, ebx
call dword [eax + 0x44]
cmp eax, dword [ebp - 0x14]
je 0x480009
push 0x215
push 0x5191e8
push 0x50c244
push 0x50c0c0
push 0x508530
call fcn.00401466
mov eax, dword [ebx]
add esp, 0x14
mov ecx, ebx
call dword [eax + 8]
jmp 0x48016d
push dword [ebp - 0x14]
lea eax, [ebp - 0x428]
push 0x519450
push eax
call fcn.004bafeb
push dword [edi + 8]
call fcn.00404bcb
add esp, 0x10
mov ecx, eax
call fcn.00404b9c
mov edx, dword [eax]
lea ecx, [ebp - 0x428]
push 1
push ecx
mov ecx, eax
call dword [edx + 4]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x480090
mov edx, dword [eax]
push 0x515018
mov ecx, eax
call dword [edx + 0x44]
mov ecx, dword [ebp - 0x18]
mov ebx, eax
mov eax, dword [ecx]
call dword [eax + 8]
push 0x1e
push ebx
call fcn.004b1e3d
push 0
mov ebx, eax
call fcn.004b1e05
add esp, 0xc
cmp eax, ebx
jg 0x48007b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
jmp 0x480001
mov ebx, dword [ebp - 0x10]
push 0x32
push 2
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x24]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x10]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x19]
push eax
push 0x519438
lea ecx, [ebp - 0x28]
call fcn.00403ed8
mov ecx, dword [esi + 0x24]
push 1
mov byte [ebp - 4], 1
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0xc]
mov ebx, eax
add ecx, 8
mov eax, dword [ecx]
call dword [eax + 8]
push eax
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 4]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b3a98
mov ecx, eax
call fcn.004b3d15
push eax
lea eax, [ebp - 0x828]
push eax
call fcn.004bafeb
add esp, 0x14
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
push dword [ebp - 0x28]
call fcn.00407799
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x828]
push eax
call fcn.004b30c7
pop ecx
lea eax, [ebp - 0x828]
push eax
call fcn.0040445f
mov eax, dword [esi]
pop ecx
mov ecx, esi
call dword [eax + 4]
push eax
push 0x64
lea eax, [ebp - 0x428]
push 0x519474
push eax
call fcn.004bafeb
push dword [edi + 8]
call fcn.00404bcb
add esp, 0x14
mov ecx, eax
call fcn.00404b9c
mov edx, dword [eax]
lea ecx, [ebp - 0x428]
push 1
push ecx
mov ecx, eax
call dword [edx + 4]
test eax, eax
je 0x480171
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
xor al, al
jmp 0x4801ad
mov ebx, dword [edi + 0xc]
mov eax, dword [edi + 0xc]
mov edx, dword [esi + 0x2c]
add esi, 0x2c
push 1
mov ecx, edi
add ebx, 8
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], edx
call fcn.0042a360
push eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
mov ecx, dword [ebp - 0x18]
push eax
mov eax, dword [ecx]
call dword [eax + 4]
push eax
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, esi
call dword [eax]
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret