Function at 0x584968
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x584970
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405f2c
xor eax, eax
push ebp
push 0x584c6f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405bf4
mov esi, eax
test esi, esi
jl 0x5849eb
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov eax, dword [ebp - 4]
test byte [eax + edi*4 + 0x10], 1
je 0x5849e7
mov eax, dword [ebp - 4]
cmp dword [eax + edi*4 + 8], 0
je 0x5849e7
mov eax, dword [ebp - 4]
cmp dword [eax + edi*4 + 0xc], 0
jne 0x5849e7
push dword [ebp - 8]
push 0x584c88
mov eax, dword [ebp - 4]
push dword [eax + edi*4 + 8]
push 0x584ca4
lea eax, [ebp - 8]
mov edx, 4
call fcn.00404b50
inc ebx
dec esi
jne 0x5849a5
cmp dword [ebp - 8], 0
je 0x584c31
push 0x584cb0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
call fcn.00583fb8
pop ecx
push dword [ebp - 0xc]
push 0x584cf8
push dword [ebp - 8]
push 0x584d10
lea eax, [ebp - 8]
mov edx, 5
call fcn.00404b50
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0052b904
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0048a540
mov eax, dword [ebp - 4]
call fcn.00405bf4
mov esi, eax
test esi, esi
jl 0x584ae2
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 4]
test byte [edx + eax*4 + 0x10], 1
je 0x584ada
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 8], 0
je 0x584ada
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 0xc], 0
jne 0x584ada
mov al, byte [0x584d3c]
push eax
lea eax, [ebp - 0x1c]
lea edx, [ebx + ebx*4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + edx*4 + 8]
call fcn.00415b4c
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, 0x584d48
mov edi, dword [eax]
call dword [edi + 0x244]
test al, al
je 0x584ada
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.00480438
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + ebx*4]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax*4 + 0xc]
call fcn.00404824
inc ebx
dec esi
jne 0x584a57
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0048a54c
mov eax, dword [ebp - 4]
call fcn.00405bf4
mov esi, eax
test esi, esi
jl 0x584c31
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*4]
mov eax, dword [ebp - 4]
test byte [eax + edi*4 + 0x10], 1
je 0x584c29
mov eax, dword [ebp - 4]
cmp dword [eax + edi*4 + 8], 0
je 0x584c29
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 4]
cmp dword [edx + eax*4 + 0xc], 0
je 0x584b48
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + eax*4 + 0xc]
mov edx, 0x584d58
call fcn.00404bdc
jne 0x584c29
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x584c14
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0x2d8]
mov edx, dword [eax + 0x68]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404868
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.00579d8c
test al, al
je 0x584b9e
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.00579db4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404868
jmp 0x584bba
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
call fcn.004090d8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404868
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x584c14
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0052b904
mov edx, 0x584d70
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0048a540
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.00480438
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404868
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0048a54c
lea eax, [ebx + ebx*4]
mov edx, dword [ebp - 4]
lea eax, [edx + eax*4 + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
call fcn.00404824
inc ebx
dec esi
jne 0x584b02
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584c76
lea eax, [ebp - 0x2c]
mov edx, 4
call fcn.004047f4
lea eax, [ebp - 0x1c]
call fcn.004113f0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004047f4
lea eax, [ebp - 4]
mov edx, dword [0x583e30]
call fcn.00405ec8
ret