Function at 0x58847c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x588485
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00407674
mov eax, dword [ebp + 0x10]
call fcn.00405840
xor eax, eax
push ebp
push 0x588d3a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x588cc6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0xc350
jl 0x5888c1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x588d54
call fcn.0040ba0c
mov eax, dword [ebp - 0x1c]
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
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4cd154]
call fcn.004d3400
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x5888a0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004d2fc8
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
xor edx, edx
call fcn.004d3464
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x30]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x28]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 2
call fcn.004d3464
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x38]
mov edx, 0x588e84
call fcn.004057e8
setne dl
mov eax, ebx
call fcn.004d18c8
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 3
call fcn.004d3464
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
jne 0x588609
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 3
call fcn.004d3464
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x64]
call fcn.00405414
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 6
call fcn.004d3464
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x40]
mov edx, 0x588e90
call fcn.0044b9a8
mov edx, eax
mov eax, ebx
call fcn.004d0f6c
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 7
call fcn.004d3464
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x44]
mov eax, ebx
call fcn.004cf95c
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 9
call fcn.004d3464
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00409ea4
mov edx, dword [ebp - 0x48]
mov eax, 0x588e9c
call fcn.0040599c
test eax, eax
setg al
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 8
call fcn.004d3464
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x50]
mov edx, 0x588eb0
call fcn.0044b9a8
push eax
cmp byte [ebp + 8], 0
je 0x588767
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 5
call fcn.004d3464
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x54]
mov edx, 0x588ec8
call fcn.0044b9a8
test al, al
jne 0x58876b
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 5
call fcn.004d3464
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x58]
mov edx, 0x588ed8
call fcn.0044b9a8
test al, al
jne 0x58876b
xor eax, eax
jmp 0x58876d
mov al, 1
push eax
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 1
call fcn.004d3464
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x5c]
pop edx
pop ecx
call fcn.00587fc4
mov edx, eax
mov eax, ebx
call fcn.004cf8d4
mov eax, ebx
call fcn.004cf81c
cmp al, 0xa
je 0x5887eb
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 4
call fcn.004d3464
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x6c]
call fcn.004cece4
mov edx, eax
mov eax, ebx
call fcn.004cf9e0
mov eax, ebx
call fcn.004cf81c
cmp al, 0x16
jne 0x588856
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 0xa
call fcn.004d3464
mov edx, dword [eax]
call dword [edx + 0x48]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 0xb
call fcn.004d3464
mov edx, dword [eax]
call dword [edx + 0x48]
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe8]
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004d0db0
cmp dword [ebp - 0x70], 0
je 0x58888f
lea edx, [ebp - 0x74]
mov eax, ebx
call fcn.004d0db0
mov eax, dword [ebp - 0x74]
push eax
mov eax, ebx
call fcn.004cf81c
mov edx, eax
pop eax
call fcn.004cef78
test al, al
jne 0x58888f
lea eax, [ebx + 0x64]
call fcn.004053c0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
call fcn.00407710
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x70]
call fcn.00407710
cmp byte [ebp - 0x78], 0
je 0x588534
jmp 0x588cb0
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x2c]
mov ecx, 1
mov eax, 0x588ee8
call fcn.0040ba0c
mov eax, dword [ebp - 0x7c]
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
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4cd154]
call fcn.004d3400
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
jmp 0x588c94
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
call fcn.004d2fc8
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push 0x588f14
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x80]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x80]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x28]
lea eax, [ebp - 0x34]
push eax
push 0x588f24
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x84]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x84]
mov edx, 0x588e90
call fcn.004057e8
sete dl
mov eax, ebx
call fcn.004d0f6c
lea eax, [ebp - 0x34]
push eax
push 0x588f30
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x88]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x88]
mov edx, 0x588e84
call fcn.004057e8
setne dl
mov eax, ebx
call fcn.004d18c8
lea eax, [ebp - 0x34]
push eax
push 0x588f40
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 8]
mov eax, 0x588f50
call fcn.0040599c
mov esi, eax
test esi, esi
jle 0x588a62
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004058b8
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 1
call fcn.004058f8
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x588a54
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
dec edx
lea eax, [ebp - 8]
call fcn.00405ae0
jmp 0x588a75
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00405458
lea eax, [ebp - 8]
call fcn.004053c0
lea eax, [ebp - 0x34]
push eax
push 0x588f5c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0xd8]
test al, al
jne 0x588ad4
lea eax, [ebp - 0x34]
push eax
push 0x588f5c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x8c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x8c]
lea eax, [ebx + 0x64]
call fcn.00405414
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
call fcn.00407710
mov eax, dword [ebp - 0x34]
mov edx, 8
call fcn.004d3464
lea edx, [ebp - 0x90]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x90]
mov edx, 0x588eb0
call fcn.0044b9a8
push eax
cmp byte [ebp + 8], 0
je 0x588b8f
lea eax, [ebp - 0x34]
push eax
push 0x588f6c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x94]
mov edx, 0x588ec8
call fcn.0044b9a8
test al, al
jne 0x588b93
lea eax, [ebp - 0x34]
push eax
push 0x588f80
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x98]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x98]
mov edx, 0x588ed8
call fcn.0044b9a8
test al, al
jne 0x588b93
xor edx, edx
jmp 0x588b95
mov dl, 1
mov eax, dword [ebp - 0xc]
pop ecx
call fcn.00587fc4
mov edx, eax
mov eax, ebx
call fcn.004cf8d4
lea eax, [ebp - 0x34]
push eax
push 0x588f90
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
call fcn.00407710
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x9c]
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov edx, dword [ebp - 0x9c]
mov eax, ebx
call fcn.004cf95c
cmp dword [ebp - 8], 0
je 0x588c83
mov edx, dword [ebp - 8]
mov eax, 0x588fa0
call fcn.0040599c
mov esi, eax
test esi, esi
jne 0x588c0e
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.0040ac5c
mov edx, eax
mov eax, ebx
call fcn.004cf9e0
jmp 0x588c83
lea eax, [ebp - 0xa0]
push eax
mov ecx, esi
dec ecx
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.004058b8
mov eax, dword [ebp - 0xa0]
xor edx, edx
call fcn.0040ac5c
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x588c55
mov eax, dword [ebp - 0x18]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xa4]
push eax
lea edx, [esi + 1]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
call fcn.004058b8
mov eax, dword [ebp - 0xa4]
xor edx, edx
call fcn.0040ac5c
mov edx, eax
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xe8]
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
call fcn.00407710
lea eax, [ebp - 0x78]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x70]
call fcn.00407710
cmp byte [ebp - 0x78], 0
je 0x588923
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x588ccd
lea eax, [ebp - 4]
call fcn.00407600
ret