Function at 0x587af0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x587af9
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407674
mov eax, dword [ebp - 8]
call fcn.00405840
xor eax, eax
push ebp
push 0x587ed6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00421968
lea eax, [ebp - 0xc]
call fcn.004053c0
xor ebx, ebx
xor eax, eax
push ebp
push 0x587e92
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0xc350
jl 0x587e7c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea edx, [ebp - 0x18]
xor ecx, ecx
mov eax, 0x587ef0
call fcn.0040ba0c
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00407710
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xa0]
call fcn.00407710
jmp 0x587e60
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.004d3464
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [ebp - 0x20]
push 0x587fb4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 1
call fcn.004d3464
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405754
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004057e8
je 0x587d7f
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.004d3464
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [ebp - 0x2c]
push 0x587fb4
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 1
call fcn.004d3464
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
push dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405754
mov eax, esi
call fcn.004d3e94
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
xor edx, edx
call fcn.004d3464
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.0040a508
mov ecx, dword [ebp - 0x34]
mov edx, 1
mov eax, ebx
call fcn.004d3e40
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 1
call fcn.004d3464
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.0040a508
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov eax, ebx
call fcn.004d3e40
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 2
call fcn.004d3464
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.0040a508
mov ecx, dword [ebp - 0x44]
mov edx, 3
mov eax, ebx
call fcn.004d3e40
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 3
call fcn.004d3464
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.0040a508
mov ecx, dword [ebp - 0x4c]
mov edx, 2
mov eax, ebx
call fcn.004d3e40
jmp 0x587e4f
lea ecx, [ebp - 0x58]
mov edx, 3
mov eax, ebx
call fcn.004d3e28
push dword [ebp - 0x58]
push 0x587fc0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 2
call fcn.004d3464
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.0040a508
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 3
call fcn.00405754
mov ecx, dword [ebp - 0x54]
mov edx, 3
mov eax, ebx
call fcn.004d3e40
lea ecx, [ebp - 0x68]
mov edx, 2
mov eax, ebx
call fcn.004d3e28
push dword [ebp - 0x68]
push 0x587fc0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x24]
mov edx, 3
call fcn.004d3464
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x70]
lea edx, [ebp - 0x6c]
call fcn.0040a508
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00405754
mov ecx, dword [ebp - 0x64]
mov edx, 2
mov eax, ebx
call fcn.004d3e40
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
call fcn.00407710
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x70]
call fcn.00407710
cmp byte [ebp - 0x74], 0
je 0x587b9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x587e99
lea eax, [ebp - 4]
call fcn.00407600
ret