Function at 0x586628
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x586631
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404c80
lea esi, [ebp - 0x15]
xor eax, eax
push ebp
push 0x586a5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2e0]
cmp dword [ebp - 0xc], 0
sete byte [ebp - 0x31]
cmp byte [ebp - 0x31], 0
je 0x58668b
mov dl, 1
mov eax, dword [0x41c66c]
call fcn.0040388c
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x559e1c]
call fcn.0056891c
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x586a08
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2d8]
mov edx, eax
mov eax, dword [0x579b4c]
call fcn.0058bc60
mov ebx, eax
lea ecx, [ebp - 0x48]
mov edx, 0x4d
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0x38]
mov edx, ebx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x188]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31c]
call fcn.0051b9a8
mov edx, eax
mov eax, dword [ebp - 0x30]
call fcn.0051b99c
mov edx, 0x586a78
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x18c]
mov edx, dword [ebp - 8]
mov eax, 0x586be4
call fcn.00404dd4
mov ebx, eax
test ebx, ebx
jne 0x586730
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x2d8]
mov eax, dword [eax + 0x68]
lea edx, [ebp - 0x2c]
call fcn.004090d8
jmp 0x58675d
lea eax, [ebp - 0x2c]
push eax
mov ecx, ebx
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404cf0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.00404a90
mov ecx, eax
lea edx, [ebx + 1]
mov eax, dword [ebp - 8]
call fcn.00404cf0
mov eax, dword [ebp - 0x30]
call fcn.0051b800
mov edi, eax
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x28]
mov ebx, eax
mov edx, 0x586bf0
mov eax, ebx
call fcn.0051bb24
mov dx, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov dl, 1
mov eax, ebx
call fcn.0051bb84
mov eax, dword [ebp - 8]
call fcn.00404a90
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov edx, 1
mov eax, ebx
call fcn.0055f998
mov eax, edi
mov edx, dword [eax]
call dword [edx + 0x28]
mov ebx, eax
mov edx, 0x586c00
mov eax, ebx
call fcn.0051bb24
mov dx, 1
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 4]
mov dl, 1
mov eax, ebx
call fcn.0051bb84
mov eax, dword [ebp - 0x2c]
call fcn.00404a90
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x2c]
mov edx, 1
mov eax, ebx
call fcn.0055f998
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x54]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x30]
call fcn.00507dd8
mov edx, 0xfa0
mov eax, dword [0x4f722c]
call fcn.004f74d0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x5869d2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0xa4]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
jne 0x586978
mov eax, dword [ebp - 0x14]
push eax
push esi
mov ecx, dword [ebp - 0x10]
mov dx, 1
mov eax, dword [ebp - 0x30]
call fcn.00505e8c
cmp byte [esi], 0
jne 0x58682c
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x58]
call fcn.00411808
lea eax, [ebp - 0x58]
call fcn.004177f4
lea eax, [ebp - 0x58]
call fcn.00413518
test al, al
je 0x586897
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f722c]
call fcn.004f75ac
jmp 0x5868b5
lea eax, [ebp - 0x5c]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f722c]
call fcn.004f75ec
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
call fcn.00404a58
mov eax, dword [ebp - 0x14]
push eax
push esi
mov ecx, dword [ebp - 0x10]
mov dx, 2
mov eax, dword [ebp - 0x30]
call fcn.00505e8c
cmp byte [esi], 0
jne 0x58682c
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x6c]
call fcn.00411808
lea eax, [ebp - 0x6c]
call fcn.004177f4
lea eax, [ebp - 0x6c]
call fcn.00413518
test al, al
je 0x586906
lea eax, [ebp - 0x24]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f722c]
call fcn.004f75ac
jmp 0x586924
lea eax, [ebp - 0x70]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f722c]
call fcn.004f75ec
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x24]
call fcn.00404a58
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call fcn.00404bdc
je 0x586955
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x24]
call fcn.00404868
cmp dword [ebp - 0x20], 0
je 0x586955
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x20]
call fcn.004047d0
cmp dword [ebp - 0x20], 0
je 0x586968
lea eax, [ebp - 0x20]
mov edx, 0x586c10
call fcn.00404a98
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
call fcn.00404a98
jmp 0x58682c
cmp dword [ebp - 0x20], 0
je 0x586989
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x5869a2
mov ecx, dword [ebp + 8]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5869d9
mov edx, dword [ebp - 0x10]
mov eax, dword [0x4f722c]
call fcn.004f74ec
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4f722c]
call fcn.004f74ec
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x58]
ret