Function at 0x407190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x354
fldz
push ebp
push esi
xor esi, esi
mov dword [esp + 0x24], esi
fst dword [esp + 0x44]
fst dword [esp + 0x18]
xor eax, eax
fldz
xor edx, edx
fstp qword [esp + 0x44]
xor ecx, ecx
mov word [esp + 0x10], ax
mov word [esp + 0x28], cx
mov word [esp + 0x1c], dx
fst dword [esp + 0x20]
fst dword [esp + 0x44]
mov edx, 0x95bddd06
fstp dword [esp + 8]
mov dword [esp + 0xc], esi
fld dword [esp + 8]
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
fisub dword [esp + 8]
mov ebp, 1
push edi
mov edi, dword [esp + 0x370]
fstp dword [esp + 0xc]
dec dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
sub edx, ecx
add edx, dword [esp + 0x10]
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], ebp
mov dword [esp + 0x10], edx
movzx eax, word [0x4249ec]
lea edx, [esp + 0x54]
push edx
add eax, 0x78f2cfa0
lea ecx, [esp + 0x54]
mov dword [esp + 0x5c], ebp
push edi
mov word [0x4249ec], ax
mov dword [esp + 0x64], ecx
call fcn.00401480
add esp, 8
test eax, eax
jl 0x407957
mov eax, dword [edi + 8]
test byte [eax], 1
je 0x407957
fld qword [0x425f38]
lea ecx, [esp + 0x18]
fadd qword [0x41f348]
push edi
push ecx
fstp qword [0x425f38]
fld qword [0x425f38]
fmul dword [0x424974]
fstp dword [0x424974]
call fcn.00402fe0
push esi
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.004019d0
push 0x300
lea ecx, [esp + 0x78]
push esi
push ecx
call fcn.0040b190
mov edx, dword [esp + 0x38c]
push edx
call fcn.00401250
add esp, 0x24
cmp eax, 0x29f
jle 0x4072c3
mov dword [esp + 0x10], 6
jmp 0x4072f3
cmp eax, 0xef
jle 0x4072d4
mov dword [esp + 0x10], 5
jmp 0x4072f3
cmp eax, 0x4f
jle 0x4072e3
mov dword [esp + 0x10], 4
jmp 0x4072f3
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x10], ecx
fld qword [0x41f808]
push ebx
mov ebx, dword [edi + 4]
fstp qword [0x424d30]
add ebx, ebp
mov ebp, dword [esp + 0x368]
push ebx
push ebp
call fcn.00402ce0
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4078d1
fld dword [esp + 0x20]
fld1
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x20]
fld dword [0x424dcc]
fsub qword [0x41f800]
fld dword [esp + 0x20]
mov dx, word [0x4248b8]
fsubr qword [0x41f7f8]
inc word [0x4248b8]
movsx eax, dx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(2)
fcompp
fnstsw ax
fadd dword [0x424dcc]
fstp dword [0x424dcc]
test ah, 1
jne 0x4073a0
fld dword [esp + 0x28]
fsub qword [0x41f7f0]
fsub dword [esp + 0x20]
mov cx, word [esp + 0x30]
movsx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040b210
mov word [esp + 0x30], ax
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.00402ce0
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4078d1
lea ecx, [ebx + ebx]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00402ce0
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4078d1
mov ebx, dword [esp + 0x378]
cmp ebx, esi
je 0x407400
cmp dword [ebx + 8], esi
je 0x407400
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], edx
jmp 0x4074ab
lea eax, [esp + 0x40]
push 1
push eax
call fcn.004033f0
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4078d8
mov ecx, dword [edi + 4]
shl ecx, 6
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.00403120
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4078d8
mov ax, word [0x4231b4]
movzx ecx, word [esp + 0x24]
cwde
sub eax, ecx
add eax, 0x5cfe06f2
lea edx, [esp + 0x40]
push edi
mov word [0x4231b4], ax
push edx
mov eax, edx
push eax
call fcn.00407040
add esp, 0xc
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4078d8
cmp ebx, esi
je 0x407489
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
fld dword [esp + 0x28]
fsub qword [0x41f348]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fadd qword [0x423850]
call fcn.0040b210
mov word [esp + 0x24], ax
mov esi, dword [esp + 0x36c]
push edi
push esi
call fcn.00401480
add esp, 8
test eax, eax
jl 0x4074d1
push edi
lea ecx, [esp + 0x74]
push esi
push ecx
call fcn.00407040
add esp, 0xc
jmp 0x4074df
lea edx, [esp + 0x70]
push esi
push edx
call fcn.00403550
add esp, 8
mov ax, word [esp + 0x18]
mov edx, dword [esp + 0x2c]
dec dword [esp + 0x18]
movsx ecx, ax
sub ecx, 0x57c7a1f0
cmp ecx, edx
jne 0x407501
add dword [esp + 0x2c], 0x7a8cfee1
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push ecx
push edi
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.00403f60
lea ecx, [esp + 0x54]
push ecx
push ebp
call fcn.00403550
add esp, 0x1c
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4078d8
fld qword [0x424a78]
fsubr qword [0x41f7e8]
fsub qword [0x41f7e0]
call fcn.0040b210
mov dword [esp + 0x2c], eax
fld qword [0x424a78]
mov eax, dword [esp + 0x1c]
fsub qword [0x41f348]
lea edx, [esp + 0x34]
push edx
push eax
fstp qword [0x424a78]
push edi
push ebp
call fcn.004042a0
mov ebp, dword [esp + 0x24]
add esp, 0x10
cmp ebp, 1
jle 0x4076af
dec ebp
mov ecx, ebp
mov esi, 1
shl esi, cl
mov ecx, dword [edi + 4]
inc ecx
push ecx
lea ebx, [esi + esi*2]
lea ebx, [esp + ebx*4 + 0x68]
push ebx
call fcn.00402ce0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4078d1
lea edx, [esp + 0x70]
push edx
push ebx
call fcn.00403550
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4078d1
test ebp, ebp
jle 0x4075ea
nop
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push ecx
push edi
push ebx
push ebx
call fcn.00403f60
add esp, 0x14
sub ebp, 1
jne 0x4075d0
mov ecx, dword [esp + 0x14]
mov ebp, 1
shl ebp, cl
lea ebx, [esi + 1]
cmp ebx, ebp
jge 0x407657
lea esi, [ebx + ebx*2]
lea esi, [esp + esi*4 + 0x64]
mov edx, dword [edi + 4]
inc edx
push edx
push esi
call fcn.00402ce0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4078d1
lea eax, [esi - 0xc]
push eax
push esi
call fcn.00403550
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x4078d1
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x34]
push ecx
push edx
push edi
lea eax, [esp + 0x7c]
push eax
push esi
call fcn.00403f60
inc ebx
add esp, 0x14
add esi, 0xc
cmp ebx, ebp
jl 0x407603
fld dword [0x424a20]
mov cx, word [0x425e38]
mov dx, word [esp + 0x18]
fsub qword [0x41f7d8]
dec word [0x425e38]
movsx eax, cx
movsx ecx, dx
lea edx, [ecx + eax - 0x7fe2ddda]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4076a5
movzx eax, word [esp + 0x18]
sub eax, 0x24b131b8
mov word [esp + 0x18], ax
jmp 0x4076af
add dword [0x42315c], 0x460bf15
fld qword [0x41f7d0]
mov ecx, dword [esp + 0x370]
fstp qword [0x424868]
mov edx, dword [ecx + 4]
fld dword [esp + 0x20]
xor ebp, ebp
fsub qword [0x41f7c8]
xor ebx, ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x18], ebp
fstp dword [esp + 0x20]
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x18], 0
jne 0x407705
mov eax, dword [esp + 0x30]
mov ecx, eax
dec eax
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x407842
mov dword [esp + 0x18], 0x20
mov edx, dword [esp + 0x370]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov esi, dword [eax + edx*4]
mov ax, word [0x424b14]
dec ecx
shr esi, cl
mov dword [esp + 0x18], ecx
movsx ecx, ax
mov dword [esp + 0x4c], ecx
and esi, 1
fild dword [esp + 0x4c]
fld dword [esp + 0x20]
fadd qword [0x41f7c0]
fsubp st(1)
call fcn.0040b210
mov word [0x424b14], ax
fld dword [esp + 0x20]
fadd qword [0x41f348]
fstp dword [esp + 0x20]
test esi, esi
jne 0x407790
cmp dword [esp + 0x24], esi
je 0x4076e3
cmp dword [esp + 0x24], 1
jne 0x407790
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x34]
push edx
push eax
mov eax, dword [esp + 0x370]
push edi
push eax
push eax
call fcn.00403f60
add esp, 0x14
jmp 0x4076e3
mov eax, dword [esp + 0x14]
inc ebp
mov ecx, eax
sub ecx, ebp
shl esi, cl
mov dword [esp + 0x24], 2
or ebx, esi
cmp ebp, eax
jne 0x4076e3
mov esi, eax
test esi, esi
jle 0x4077dd
mov ebp, dword [esp + 0x1c]
jmp 0x4077c0
mov eax, dword [esp + 0x368]
lea ecx, [esp + 0x34]
push ecx
push ebp
push edi
push eax
push eax
call fcn.00403f60
add esp, 0x14
sub esi, 1
jne 0x4077c0
mov esi, 1
add dword [esp + 0x2c], esi
fld dword [0x4248f4]
mov edx, dword [0x424884]
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
lea ecx, [esp + 0x34]
push ecx
fadd dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], eax
fisub dword [esp + 0x50]
push edx
mov edx, dword [esp + 0x370]
lea eax, [ebx + ebx*2]
push edi
lea ecx, [esp + eax*4 + 0x70]
push ecx
push edx
fsubp st(1)
fstp dword [0x4248f4]
call fcn.00403f60
add esp, 0x14
xor ebp, ebp
mov dword [esp + 0x24], esi
xor ebx, ebx
jmp 0x4076e3
mov ecx, dword [esp + 0x14]
mov esi, 1
rol esi, cl
test ebp, ebp
jle 0x4078b6
mov dword [esp + 0x28], ebp
jmp 0x407860
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x368]
lea eax, [esp + 0x34]
push eax
push ecx
push edi
push ebp
push ebp
call fcn.00403f60
mov edx, dword [0x424964]
imul edx, edx, 0xfeb6f078
add ebx, ebx
add esp, 0x14
mov dword [0x424964], edx
test ebx, esi
je 0x4078ad
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push ecx
push edi
lea edx, [esp + 0x7c]
push edx
push ebp
call fcn.00403f60
add esp, 0x14
sub dword [esp + 0x28], 1
jne 0x407860
jmp 0x4078bd
mov ebp, dword [esp + 0x368]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push ecx
push edi
push ebp
call fcn.004042a0
add esp, 0x10
mov ebx, dword [esp + 0x378]
mov esi, dword [esp + 0x14]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407913
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x64]
mov edi, edx
mov edi, edi
push 0
push esi
call fcn.004010c0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407900
test ebx, ebx
pop ebx
push 0
lea edx, [esp + 0x34]
lea eax, [esp + 0x70]
je 0x40793a
push edx
push eax
call fcn.004010c0
mov eax, dword [esp + 0x18]
add esp, 0xc
pop edi
pop esi
pop ebp
add esp, 0x354
ret
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
call fcn.004010c0
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x354
ret
pop edi
pop esi
mov eax, 0xfffffffc
pop ebp
add esp, 0x354
ret