Function at 0x7874c8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x7874d0
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x787c16
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
je 0x78756d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
call fcn.004e6b5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
mov edx, 0x787c2c
call fcn.004e61b4
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.004fc3a8
dec eax
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x34c]
sub eax, dword [edx + 0x228]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
call fcn.00460fcc
mov edx, dword [0x829c30]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
mov eax, dword [eax + 0x26c]
call fcn.0045fd44
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x787666
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x20], 2
jne 0x7875c5
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov edx, 1
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xffffffff
jne 0x7875e8
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov edx, 4
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffe
jne 0x78760b
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov edx, 3
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffd
jne 0x78762e
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov edx, 5
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
jne 0x787651
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov edx, 7
mov eax, dword [ebp - 0x10]
call fcn.0045e9d4
mov eax, dword [ebp - 0x10]
call fcn.0045efa8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x7875a4
mov eax, dword [0x829c30]
cmp dword [eax], 0
je 0x7876bd
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xffffffff
je 0x7876bd
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffe
je 0x7876bd
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffd
je 0x7876bd
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0
je 0x7876bd
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov edx, 2
call fcn.0045e9d4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
call fcn.00694adc
test al, al
je 0x7876dd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0x38]
mov eax, dword [0x829c30]
cmp dword [eax], 0
je 0x787a60
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xffffffff
jne 0x78798b
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x324]
call fcn.00489b44
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x18]
call fcn.0040a2fc
cmp dword [ebp - 0x18], 0
jne 0x787765
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
mov edx, 0x787c44
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787c2c
call fcn.00655878
xor edx, edx
call fcn.00684ef4
jmp 0x78798b
xor eax, eax
push ebp
push 0x78778f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
call fcn.0040c908
fmul dword [0x787c84]
fistp qword [ebp - 0x28]
wait
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x7877a7
fild qword [ebp - 0x28]
fcomp dword [0x787c88]
fnstsw ax
sahf
jne 0x7878ed
mov ecx, 0x787c94
mov edx, dword [ebp - 0x18]
mov eax, dword [0x703044]
call fcn.007030a0
mov dword [ebp - 0x2c], eax
push 0x787ca0
lea ecx, [ebp - 0x3c]
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x3c]
push 0x787cf4
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004056e4
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jle 0x78783f
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
push 0x787c94
lea ecx, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x40]
push 0x787cf4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004056e4
inc dword [ebp - 0x14]
dec dword [ebp - 0x30]
jne 0x78780c
push dword [ebp - 0x1c]
push 0x787d00
push 0x787d0c
lea ecx, [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x44]
push 0x787cf4
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004056e4
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jle 0x7878b8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 1
push dword [ebp - 0x1c]
push 0x787c94
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x48]
push 0x787cf4
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.004056e4
inc dword [ebp - 0x14]
dec dword [ebp - 0x30]
jne 0x787885
push dword [ebp - 0x1c]
push 0x787d00
push 0x787d4c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004056e4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x78798b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
mov edx, 0x787d58
mov ecx, dword [eax]
call dword [ecx + 0x2c]
fild qword [ebp - 0x28]
fdiv dword [0x787c84]
call fcn.00403178
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787e34
call fcn.00655878
call fcn.00684cb4
fild qword [ebp - 0x28]
fdiv dword [0x787c84]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787e48
call fcn.00655878
call fcn.00684e5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787e5c
call fcn.00655878
mov edx, dword [ebp - 0x18]
call fcn.00685568
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787e70
call fcn.00655878
mov edx, dword [ebp - 0x18]
call fcn.00685568
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffe
jne 0x7879cf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
mov edx, 0x787e88
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787ecc
call fcn.00655878
mov edx, 1
call fcn.00684ef4
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffd
jne 0x7879f6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
mov edx, 0x787ee4
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xffffffff
je 0x787a60
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffe
je 0x787a60
mov eax, dword [0x829c30]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
cmp dword [eax], 0xfffffffd
je 0x787a60
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
mov edx, 0x787f2c
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
mov edx, 0x787f70
call fcn.00655878
mov edx, dword [0x829c30]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
mov edx, dword [edx]
call fcn.00684ef4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x50]
push 0x787f88
push 0x787e5c
lea eax, [ebp - 0x54]
push eax
mov eax, dword [0x8295a8]
mov eax, dword [eax]
mov ecx, 0x787f9c
mov edx, 0x787fb4
mov ebx, dword [eax]
call dword [ebx]
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004056e4
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0x787fc4
lea eax, [ebp - 0x58]
push eax
mov eax, dword [0x8295a8]
mov eax, dword [eax]
mov ecx, 0x787fd4
mov edx, 0x787fb4
mov ebx, dword [eax]
call dword [ebx]
mov eax, dword [ebp - 0x58]
mov edx, 0x787fc4
call fcn.00405770
jne 0x787b2c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 0x787ff0
call fcn.0040562c
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.006557ac
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x308]
call fcn.004e4f3c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x14c]
test eax, eax
je 0x787bd6
mov al, byte [0x787ff8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
push eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0xc]
mov cl, 0xfc
call fcn.00417260
lea ecx, [ebp - 0x6c]
mov edx, 0x787c2c
pop eax
mov ebx, dword [eax]
call dword [ebx + 0x244]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.004e77ac
neg eax
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
pop edx
call fcn.004e77ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.005d0014
mov eax, dword [eax + 0x30]
call fcn.004e6b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x787c1d
lea eax, [ebp - 0x6c]
call fcn.00412d50
lea eax, [ebp - 0x5c]
mov edx, 9
call fcn.00405388
lea eax, [ebp - 0x38]
call fcn.00405364
lea eax, [ebp - 0x34]
call fcn.00405364
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405388
ret