Function at 0x5845ec
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x5845f4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x584d54
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, dword [ebx + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx + 0x36c]
cmp byte [eax + 0x170], 0
je 0x584a11
mov eax, dword [ebx + 0x390]
mov edx, dword [eax]
call dword [edx + 0xc8]
test eax, eax
jne 0x5848f5
mov ecx, ebx
mov dl, 1
mov eax, dword [0x575c54]
call fcn.00461750
mov edx, dword [0x669f48]
mov dword [edx], eax
mov eax, ebx
call fcn.0058117c
mov eax, dword [0x669a3c]
mov eax, dword [eax]
mov edx, dword [eax + 0x464]
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov eax, dword [eax + 0x330]
call fcn.00532d04
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov esi, dword [eax + 0x400]
mov eax, esi
call fcn.00483d8c
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x334]
call fcn.0050c7e8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004094e8
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
call fcn.00405bc0
lea eax, [ebp - 0x18]
push eax
mov eax, esi
call fcn.004d6c60
mov edx, 0x584d68
call fcn.004ced68
pop edx
call fcn.004d0010
lea edx, [ebp - 0x38]
mov eax, dword [ebx + 0x334]
call fcn.0050c7e8
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004094e8
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
call fcn.00405bc0
lea eax, [ebp - 0x30]
push eax
mov eax, esi
call fcn.004d6c60
mov edx, 0x584d7c
call fcn.004ced68
pop edx
call fcn.004d0010
lea edx, [ebp - 0x50]
mov eax, dword [ebx + 0x334]
call fcn.0050c7e8
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.004094e8
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
call fcn.00405bc0
lea eax, [ebp - 0x48]
push eax
mov eax, esi
call fcn.004d6c60
mov edx, 0x584d90
call fcn.004ced68
pop edx
call fcn.004d0010
mov eax, esi
call fcn.00483d80
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov esi, dword [eax + 0x42c]
mov eax, esi
call fcn.00483d8c
mov eax, dword [ebx + 0x3a4]
mov edx, dword [eax]
call dword [edx + 0xc8]
dec eax
jne 0x5847c6
mov eax, esi
call fcn.004d882c
mov ecx, 0x584da8
mov edx, 3
mov edi, dword [eax]
call dword [edi + 0x20]
mov eax, esi
call fcn.004d882c
mov ecx, 0x584dcc
mov edx, 0xb
mov edi, dword [eax]
call dword [edi + 0x20]
mov eax, esi
call fcn.004d6c60
mov edx, 0x584d68
call fcn.004ced68
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
lea eax, [ebp - 0x60]
mov cl, 0xfc
call fcn.00405b7c
lea edx, [ebp - 0x60]
pop eax
call fcn.004d0010
mov eax, esi
call fcn.004d6c60
mov edx, 0x584d7c
call fcn.004ced68
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
lea eax, [ebp - 0x70]
mov cl, 0xfc
call fcn.00405b7c
lea edx, [ebp - 0x70]
pop eax
call fcn.004d0010
mov eax, esi
call fcn.00483d80
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov eax, dword [eax + 0x42c]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x58487f
mov eax, 0x584dec
call fcn.00661d7c
mov dl, 1
mov eax, dword [ebx + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x669f48]
mov eax, dword [eax]
call fcn.00465a20
jmp 0x584ce9
mov eax, dword [ebp - 4]
dec eax
je 0x58488d
dec eax
je 0x5848a1
dec eax
je 0x5848b5
jmp 0x5848e4
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.005274e8
jmp 0x5848e4
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.00527238
jmp 0x5848e4
mov edx, dword [0x669a3c]
mov edx, dword [edx]
mov edx, dword [edx + 0x48c]
mov eax, dword [0x669f48]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
mov ecx, dword [eax + 0x2d4]
mov dword [ecx + 0xc], edx
mov edx, dword [0x669f48]
call fcn.00527238
mov eax, dword [0x669f48]
mov eax, dword [eax]
call fcn.00465a20
jmp 0x584ccf
mov ecx, ebx
mov dl, 1
mov eax, dword [0x57b730]
call fcn.00461750
mov edx, dword [0x669cd4]
mov dword [edx], eax
mov eax, dword [0x669cd4]
mov eax, dword [eax]
mov esi, dword [eax + 0x300]
mov eax, esi
call fcn.00483d8c
mov edx, 0x584e10
mov eax, esi
call fcn.004b7654
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
pop eax
call fcn.00483068
mov eax, esi
call fcn.00483d80
mov eax, dword [0x669cd4]
mov eax, dword [eax]
mov esi, dword [eax + 0x2f0]
mov eax, esi
call fcn.00483d8c
mov edx, 0x584e10
mov eax, esi
call fcn.004b7654
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
pop eax
call fcn.00483068
mov eax, esi
call fcn.00483d80
mov eax, dword [0x669cd4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x5849cf
mov eax, 0x584dec
call fcn.00661d7c
mov dl, 1
mov eax, dword [ebx + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x669cd4]
mov eax, dword [eax]
call fcn.00465a20
jmp 0x584ce9
mov eax, dword [ebp - 4]
dec eax
je 0x5849da
dec eax
je 0x5849ee
jmp 0x584a00
mov eax, dword [0x669cd4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
call fcn.005274e8
jmp 0x584a00
mov eax, dword [0x669cd4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f4]
call fcn.00527238
mov eax, dword [0x669cd4]
mov eax, dword [eax]
call fcn.00465a20
jmp 0x584ccf
mov ecx, ebx
mov dl, 1
mov eax, dword [0x57c878]
call fcn.00461750
mov edx, dword [0x669c0c]
mov dword [edx], eax
lea eax, [ebp - 8]
mov edx, 0x584e20
call fcn.00404bd0
mov eax, dword [0x669de8]
mov eax, dword [eax]
mov esi, dword [eax + 0x5c]
mov eax, esi
call fcn.00483d8c
mov eax, esi
call fcn.004d882c
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, esi
call fcn.004d6c60
mov edx, 0x584e80
call fcn.004ced68
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
lea eax, [ebp - 0x80]
mov cl, 0xfc
call fcn.00405b7c
lea edx, [ebp - 0x80]
pop eax
call fcn.004d0010
mov eax, esi
call fcn.00483d80
mov edx, 0x584e94
mov eax, esi
call fcn.00484d94
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x584e9c]
fnstsw ax
sahf
je 0x584b05
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x3f0]
mov edx, 0x584ea8
call fcn.00532d04
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x448]
mov edx, 0x584ea8
call fcn.00532d04
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x43c]
mov edx, 0x584ebc
call fcn.00532d04
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
mov edx, 0x584ebc
call fcn.00532d04
mov eax, dword [0x66c0e4]
mov eax, dword [eax + 0x378]
mov edx, dword [eax]
call dword [edx + 0xc8]
dec eax
jne 0x584b49
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x43c]
mov edx, 0x584ecc
call fcn.00532d04
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
mov edx, 0x584ecc
call fcn.00532d04
mov eax, dword [ebx + 0x374]
mov edx, dword [eax]
call dword [edx + 0xc4]
test al, al
jne 0x584b83
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x43c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x44c]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov esi, dword [eax + 0x498]
mov eax, esi
call fcn.00483d8c
mov eax, esi
call fcn.004d6c60
mov edx, 0x584e80
call fcn.004ced68
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
lea eax, [ebp - 0x90]
mov cl, 0xfc
call fcn.00405b7c
lea edx, [ebp - 0x90]
pop eax
call fcn.004d0010
mov eax, esi
call fcn.00483d80
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov esi, dword [eax + 0x4cc]
mov eax, esi
call fcn.00483d8c
mov eax, esi
call fcn.004d6c60
mov edx, 0x584e80
call fcn.004ced68
push eax
mov eax, dword [ebx + 0x334]
call fcn.0050c714
mov edx, eax
lea eax, [ebp - 0xa0]
mov cl, 0xfc
call fcn.00405b7c
lea edx, [ebp - 0xa0]
pop eax
call fcn.004d0010
mov eax, esi
call fcn.00483d80
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x4cc]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jne 0x584c74
mov eax, 0x584dec
call fcn.00661d7c
mov dl, 1
mov eax, dword [ebx + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x669c0c]
mov eax, dword [eax]
call fcn.00465a20
jmp 0x584ce9
mov eax, dword [ebp - 4]
dec eax
je 0x584c7f
dec eax
je 0x584c9f
jmp 0x584ccf
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.005274e8
mov eax, dword [0x669c0c]
mov eax, dword [eax]
call fcn.00465a20
jmp 0x584ccf
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.00527238
mov eax, dword [0x669c0c]
mov eax, dword [eax]
mov eax, dword [eax + 0x2f0]
call fcn.00527238
mov eax, dword [0x669c0c]
mov eax, dword [eax]
call fcn.00465a20
mov dl, 1
mov eax, dword [ebx + 0x2f4]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [ebx + 0x2f8]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x584d5b
lea eax, [ebp - 0xa0]
mov edx, dword [0x40113c]
mov ecx, 5
call fcn.0040572c
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 0x48]
call fcn.00405c34
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 0x30]
call fcn.00405c34
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00404b5c
lea eax, [ebp - 0x18]
call fcn.00405c34
lea eax, [ebp - 8]
call fcn.00404b38
ret