Function at 0x59f210
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x59f47b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, esi
mov ecx, 1
mov edx, dword [0x53dd6c]
call fcn.00407068
add esp, 4
test ebx, ebx
jle 0x59f27e
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x38], 0
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov eax, 0x59f494
call fcn.0040c20c
jmp 0x59f28b
lea eax, [ebp - 4]
mov edx, 0x59f4f8
call fcn.0040579c
lea eax, [ebp - 8]
mov edx, 0x59f54c
call fcn.0040579c
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00597ac0
mov edx, dword [ebp - 0x40]
lea eax, [ebp - 4]
call fcn.0040579c
mov dl, 1
mov eax, dword [0x595c84]
call fcn.005d4694
mov dword [ebp - 0x2c], eax
xor eax, eax
push ebp
push 0x59f44c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 4]
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x59f429
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x16c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, esi
mov ecx, 1
mov edx, dword [0x53dd6c]
call fcn.00407068
add esp, 4
mov eax, dword [ebp - 0x1c]
call fcn.0055e978
mov eax, dword [ebp - 0x20]
dec eax
test eax, eax
jl 0x59f40d
inc eax
mov dword [ebp - 0x34], eax
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov eax, dword [esi]
mov edx, dword [ebp - 0x14]
dec edx
imul edx, dword [ebp - 0x18]
add edx, ebx
inc edx
mov dword [eax + edi*4], edx
mov edx, 0x59f574
mov eax, dword [ebp - 0x1c]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [esi]
mov dword [edx + edi*4 + 4], eax
mov edx, 0x59f58c
mov eax, dword [ebp - 0x1c]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, dword [esi]
mov dword [edx + edi*4 + 0xc], eax
mov edx, 0x59f58c
mov eax, dword [ebp - 0x1c]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
call fcn.00595d8c
mov byte [ebp - 0x2d], al
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
call fcn.00595f8c
mov eax, dword [esi]
lea eax, [eax + edi*4 + 0x10]
mov edx, dword [ebp - 0xc]
call fcn.00405758
mov edx, 0x59f5a0
mov eax, dword [ebp - 0x1c]
call fcn.0055d44c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x44]
push eax
movzx ecx, byte [ebp - 0x2d]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x10]
call fcn.0059ee94
mov edx, dword [ebp - 0x44]
mov eax, dword [esi]
lea eax, [eax + edi*4 + 8]
call fcn.00405758
mov edx, dword [ebp - 0x20]
dec edx
mov ecx, 0x59f5b8
mov eax, ebx
call fcn.00597c50
mov eax, dword [ebp - 0x1c]
call fcn.0055ebf8
inc ebx
dec dword [ebp - 0x34]
jne 0x59f333
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59f430
cmp dword [ebp - 0x1c], 0
je 0x59f428
mov eax, dword [ebp - 0x1c]
call fcn.00404700
ret