Function at 0xb4728c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0xb476d0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0xb476b5
xor ecx, ecx
mov dl, 1
mov eax, dword [0x661654]
call fcn.00662c60
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
call fcn.00692cf0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x6633e4]
call fcn.00663758
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
call fcn.0068acc4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x64fe28]
call fcn.006505ec
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.00672a4c
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
push ebp
push 0xb475c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0xb475b3
inc eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
call fcn.00652ce4
mov edx, 0xb476e8
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0xb47738
mov eax, dword [ebp - 0x18]
call fcn.00652db0
mov edx, dword [ebp - 4]
call fcn.00682cb8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
mov eax, dword [eax + 4]
push eax
mov edx, 0xb4774c
mov eax, dword [ebp - 0x18]
call fcn.00652db0
pop edx
call fcn.00682cb8
mov eax, dword [ebp - 0x18]
call fcn.004e35a4
mov edx, 0xb4775c
mov eax, dword [ebp - 0x18]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x4c]
fistp qword [ebp - 0x30]
wait
mov edx, 0xb47774
mov eax, dword [ebp - 0x18]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x1c], eax
mov edx, 0xb47784
mov eax, dword [ebp - 0x18]
call fcn.004e481c
mov edx, dword [eax]
call dword [edx + 0x4c]
fistp qword [ebp - 0x28]
wait
mov eax, dword [ebp - 0x18]
call fcn.004e35b0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x80]
mov edx, 0xb47798
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, 0xb47738
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
mov edx, dword [ebp - 4]
call fcn.00682cb8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
mov eax, dword [eax + 4]
push eax
mov edx, 0xb4774c
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
pop edx
call fcn.00682cb8
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
push dword [eax + 0xc]
push dword [eax + 8]
mov edx, 0xb47850
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
call fcn.00682ac0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
push dword [eax + 0x14]
push dword [eax + 0x10]
mov edx, 0xb47864
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
call fcn.00682ac0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
push dword [eax + 0x24]
push dword [eax + 0x20]
mov edx, 0xb4787c
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
call fcn.00682ac0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
fild qword [eax + 0x18]
fcomp dword [0xb47888]
fnstsw ax
sahf
je 0xb47529
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
push dword [eax + 0x1c]
push dword [eax + 0x18]
mov edx, 0xb47784
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
call fcn.00682ac0
jmp 0xb4759f
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x7106fc]
call fcn.00710b20
mov eax, dword [ebp + 8]
fstp qword [eax - 0x10]
wait
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00438b90
mov edx, dword [0x6d6d60]
call fcn.00404458
fild qword [eax + 0x10]
fild qword [ebp - 0x30]
faddp st(1)
mov eax, dword [ebp + 8]
fmul qword [eax - 0x10]
fdiv dword [0xb4788c]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov edx, 2
mov eax, dword [0x6f00bc]
call fcn.006f01f8
fmul dword [0xb4788c]
fistp qword [ebp - 0x28]
wait
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov edx, 0xb47784
mov eax, dword [ebp - 0x14]
call fcn.0068b2b0
call fcn.00682ac0
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x34]
inc dword [ebp - 0xc]
dec dword [ebp - 0x34]
jne 0xb47351
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0xb4769d
mov eax, dword [ebp - 0x14]
call fcn.0040429c
mov eax, dword [ebp - 0x18]
call fcn.0040429c
mov eax, dword [ebp - 0x10]
call fcn.0040429c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb476d7
lea eax, [ebp - 0x58]
mov edx, 6
call fcn.00405210
ret