Function at 0x56da5c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x56da64
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x56dd52
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4b04f4]
call fcn.004bcf8c
mov ebx, eax
mov eax, ebx
call fcn.004bd110
mov edx, dword [eax]
call dword [edx + 0x44]
mov eax, dword [0x578948]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x26c]
mov eax, ebx
call fcn.004bd110
mov edx, 0x56dd6c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, ebx
call fcn.004bb454
mov edx, 0x56ddc4
call fcn.004b35d8
push eax
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.00416390
lea edx, [ebp - 0x1c]
pop eax
call fcn.004b485c
mov eax, ebx
call fcn.004bb454
mov edx, 0x56ddcc
call fcn.004b35d8
push eax
lea eax, [ebp - 0x2c]
mov edx, 0x56ddd8
call fcn.00416390
lea edx, [ebp - 0x2c]
pop eax
call fcn.004b485c
mov eax, ebx
call fcn.004a50c4
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14c]
mov edx, dword [0x5785a8]
mov dword [edx], eax
mov eax, dword [0x5785a8]
mov eax, dword [eax]
push eax
mov eax, dword [0x57802c]
mov ecx, 1
mov edx, dword [0x4d0c78]
call fcn.00406040
add esp, 4
mov eax, ebx
call fcn.004a75f4
xor edi, edi
lea eax, [ebp - 8]
call fcn.004047f0
lea eax, [ebp - 0xc]
call fcn.004047f0
mov eax, dword [0x5785a8]
cmp dword [eax], 0
jle 0x56dcff
jmp 0x56dcf2
lea eax, [edi + edi*8]
mov edx, dword [0x57802c]
mov edx, dword [edx]
lea esi, [edx + eax*8]
lea eax, [esi + 4]
mov edx, dword [ebp - 4]
call fcn.00404844
mov edx, 0x56ddec
mov eax, ebx
call fcn.004a61cc
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x30]
lea eax, [esi + 8]
call fcn.00404844
mov edx, 0x56ddfc
mov eax, ebx
call fcn.004a61cc
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x34]
lea eax, [esi + 0x14]
call fcn.00404844
mov eax, dword [ebp - 8]
mov edx, dword [esi + 8]
call fcn.00404bfc
jne 0x56dbf1
mov eax, dword [ebp - 0xc]
mov edx, dword [esi + 0x14]
call fcn.00404bfc
je 0x56dceb
inc edi
lea eax, [ebp - 8]
mov edx, dword [esi + 8]
call fcn.00404888
lea eax, [ebp - 0xc]
mov edx, dword [esi + 0x14]
call fcn.00404888
mov edx, 0x56de08
mov eax, ebx
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [esi], eax
mov edx, 0x56de14
mov eax, ebx
call fcn.004a61cc
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
lea eax, [esi + 0xc]
call fcn.00404844
mov edx, 0x56de20
mov eax, ebx
call fcn.004a61cc
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x3c]
lea eax, [esi + 0x10]
call fcn.00404844
mov edx, 0x56ddfc
mov eax, ebx
call fcn.004a61cc
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x40]
lea eax, [esi + 0x14]
call fcn.00404844
mov edx, 0x56de30
mov eax, ebx
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [esi + 0x18]
wait
mov edx, 0x56de44
mov eax, ebx
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x50]
fstp qword [esi + 0x20]
wait
mov edx, 0x56de54
mov eax, ebx
call fcn.004a61cc
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x44]
lea eax, [esi + 0x30]
call fcn.00404844
mov edx, 0x56de64
mov eax, ebx
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x4c]
fistp qword [esi + 0x38]
wait
mov edx, 0x56de74
mov eax, ebx
call fcn.004a61cc
mov edx, dword [eax]
call dword [edx + 0x4c]
fistp qword [esi + 0x40]
wait
mov eax, ebx
call fcn.004a790c
cmp byte [ebx + 0xa1], 0
je 0x56db7c
mov dl, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 4]
mov eax, dword [0x5785a8]
mov dword [eax], edi
mov ebx, dword [0x5785a8]
mov ebx, dword [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56dd59
lea eax, [ebp - 0x44]
mov edx, 6
call fcn.00404814
lea eax, [ebp - 0x2c]
mov edx, dword [0x40112c]
mov ecx, 2
call fcn.00405574
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404814
ret