Function at 0x5e186c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x5e1874
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x5e1b9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00406168
mov esi, eax
test esi, esi
jl 0x5e18f3
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*2]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test byte [eax + edi*8 + 0x14], 1
je 0x5e18ef
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + edi*8 + 0xc], 0
je 0x5e18ef
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + edi*8 + 4], 0
jne 0x5e18ef
push dword [ebp - 4]
push 0x5e1bb4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
push dword [eax + edi*8 + 0xc]
push 0x5e1bd0
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404e18
inc ebx
dec esi
jne 0x5e18a1
cmp dword [ebp - 4], 0
je 0x5e1b53
push 0x5e1bdc
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 8]
call fcn.005e0e14
pop ecx
push dword [ebp - 8]
push 0x5e1c28
push dword [ebp - 4]
push 0x5e1c40
lea eax, [ebp - 4]
mov edx, 5
call fcn.00404e18
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0056d474
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004f463c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00406168
mov esi, eax
test esi, esi
jl 0x5e1a0b
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
test byte [edx + eax*8 + 0x14], 1
je 0x5e1a03
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp dword [edx + eax*8 + 0xc], 0
je 0x5e1a03
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp dword [edx + eax*8 + 4], 0
jne 0x5e1a03
mov al, byte [0x5e1c6c]
push eax
lea eax, [ebp - 0x18]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
mov edx, dword [ecx + edx*8 + 0xc]
call fcn.00416498
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, 0x5e1c78
mov edi, dword [eax]
call dword [edi + 0x244]
test al, al
je 0x5e1a03
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.004eab1c
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x1c]
call fcn.004183d0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + ebx*2]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx - 8]
lea eax, [ecx + eax*8 + 4]
call fcn.00404adc
inc ebx
dec esi
jne 0x5e1962
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004f4648
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00406168
mov esi, eax
test esi, esi
jl 0x5e1b53
inc esi
xor ebx, ebx
lea edi, [ebx + ebx*2]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
test byte [eax + edi*8 + 0x14], 1
je 0x5e1b4b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
cmp dword [eax + edi*8 + 0xc], 0
je 0x5e1b4b
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
cmp dword [edx + eax*8 + 4], 0
je 0x5e1a80
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
mov eax, dword [edx + eax*8 + 4]
mov edx, 0x5e1c88
call fcn.00404ea4
jne 0x5e1b4b
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x5e1b33
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00575144
mov edx, dword [eax + 0x6c]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404b20
push 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x14]
mov eax, dword [0x6440bc]
mov eax, dword [eax]
xor ecx, ecx
mov edi, dword [eax]
call dword [edi + 0x40]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404b20
mov eax, dword [ebp + 8]
cmp dword [eax - 0x14], 0
jne 0x5e1b33
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.0056d474
mov edx, 0x5e1ca0
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004f463c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
xor edx, edx
call fcn.004eab1c
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x64]
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x34]
call fcn.004183d0
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add eax, 0xffffffec
call fcn.00404b20
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.004f4648
lea eax, [ebx + ebx*2]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 8]
lea eax, [edx + eax*8 + 4]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x14]
call fcn.00404adc
inc ebx
dec esi
jne 0x5e1a2e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e1ba2
lea eax, [ebp - 0x44]
call fcn.00411e40
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00404aac
lea eax, [ebp - 0x2c]
call fcn.00411e40
lea eax, [ebp - 0x1c]
call fcn.00404a88
lea eax, [ebp - 0x18]
call fcn.00411e40
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404aac
ret