Function at 0xb8af54
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb8b4c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov eax, dword [eax + 0x38]
call fcn.00422e1c
test eax, eax
je 0xb8b49e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x348]
call fcn.005d6ba8
mov eax, dword [eax + 0x30]
mov edx, 0xb8b4d4
call fcn.004e481c
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
cmp dword [ebp - 0xc], 0
jne 0xb8afc5
lea eax, [ebp - 0xc]
mov edx, 0xb8b4e8
call fcn.00405284
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.00652ce4
mov edx, 0xb8b4f4
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0xb8b534
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.00652db0
mov edx, dword [ebp - 0xc]
call fcn.0068332c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e35a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.00676a48
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.006c3718
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e51c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e6200
mov edx, 0xb8b54c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e481c
mov edx, 0xb8b55c
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e6200
mov edx, 0xb8b54c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e481c
mov edx, 0xb8b56c
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x24c]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
jle 0xb8b276
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5ca0
mov edx, 0xb8b57c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e481c
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 0xb8b590
call fcn.004054f8
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e48a4
test eax, eax
je 0xb8b1bb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e60b0
mov edx, 0xb8b59c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e48a4
mov edx, dword [eax]
call dword [edx + 0xa4]
mov edx, 0xb8b59c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x54]
fmul dword [0xb8b5a8]
fild qword [ebp - 0x20]
faddp st(1)
fistp qword [ebp - 0x20]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5fbc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e48a4
test eax, eax
je 0xb8b25c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e60b0
mov edx, 0xb8b5b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e48a4
mov edx, dword [eax]
call dword [edx + 0xa4]
mov edx, 0xb8b5b4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x54]
fmul dword [0xb8b5a8]
fild qword [ebp - 0x28]
faddp st(1)
fistp qword [ebp - 0x28]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e5fbc
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0xb8b0ef
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5ca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e60b0
fild qword [ebp - 0x20]
fdiv dword [0xb8b5a8]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 0xb8b5c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5fbc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e60b0
fild qword [ebp - 0x28]
fdiv dword [0xb8b5a8]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 0xb8b5c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
mov edx, dword [eax]
call dword [edx + 0x24c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
call fcn.0059898c
call fcn.00422e1c
dec eax
test eax, eax
jle 0xb8b466
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
call fcn.0059898c
mov edx, dword [ebp - 0x10]
call fcn.00563eec
mov eax, dword [eax + 0x48]
mov edx, 0xb8b5c8
call fcn.004055f8
jne 0xb8b393
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
call fcn.0059898c
mov edx, dword [ebp - 0x10]
call fcn.00563eec
mov dl, 1
call fcn.005ceb14
jmp 0xb8b45a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5ca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
call fcn.0059898c
mov edx, dword [ebp - 0x10]
call fcn.00563eec
mov edx, dword [eax + 0x48]
lea eax, [ebp - 8]
call fcn.00405284
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0xb8b5d0]
fnstsw ax
sahf
setne byte [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5fbc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0xb8b5d0]
fnstsw ax
sahf
setne byte [ebp - 0x12]
mov al, byte [ebp - 0x11]
or al, byte [ebp - 0x12]
je 0xb8b43d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
call fcn.0059898c
mov edx, dword [ebp - 0x10]
call fcn.00563eec
mov dl, 1
call fcn.005ceb14
jmp 0xb8b45a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a0]
call fcn.0059898c
mov edx, dword [ebp - 0x10]
call fcn.00563eec
xor edx, edx
call fcn.005ceb14
inc dword [ebp - 0x10]
dec dword [ebp - 0x2c]
jne 0xb8b34c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e5ca0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x39c]
call fcn.004e51e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a8]
call fcn.004e35b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3a4]
mov edx, dword [eax]
call dword [edx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb8b4c8
lea eax, [ebp - 0x30]
call fcn.004051ec
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405210
ret