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

Disassembly:
sub esp, 0x34c
fldz
xor eax, eax
fst dword [esp]
xor ecx, ecx
mov word [esp + 0x10], ax
fst dword [esp + 0x2c]
mov dword [esp + 0x24], eax
mov word [esp + 0x20], cx
xor edx, edx
mov word [esp + 8], dx
fstp dword [esp + 0x30]
mov word [esp + 4], ax
mov word [esp + 4], cx
fld dword [0x423668]
fld qword [0x4235a8]
push edi
fsubr qword [0x41f898]
mov edi, dword [esp + 0x360]
push edx
push edi
fsubp st(1)
fstp dword [0x423668]
fld qword [0x4235a8]
fadd qword [0x41f368]
fstp qword [0x4235a8]
call fcn.004034c0
add esp, 8
test eax, eax
jl 0x407a75
mov edx, dword [edi + 8]
test byte [edx], 1
je 0x407a75
mov ax, word [0x425fc4]
push ebx
push ebp
push esi
movsx ecx, ax
mov esi, 1
add word [0x425fc4], si
cmp ecx, 0xf9c7743
jg 0x40731a
fld dword [esp + 0x3c]
mov edx, dword [0x423624]
add dword [0x423624], esi
mov eax, 0xb7c004ed
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4072ea
dec word [0x423cf0]
movzx ecx, word [esp + 0x20]
movsx edx, cx
movzx ecx, word [0x423cf0]
mov eax, 0x9dcee4dc
sub eax, edx
movsx edx, cx
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [0x425234]
add dword [esp + 0x20], esi
jmp 0x40731a
fld qword [0x425ec0]
fsub qword [0x41f890]
fsub qword [0x41f888]
fadd qword [0x425ed0]
fstp qword [0x425ed0]
fld qword [0x425ec0]
fsub qword [0x41f368]
fstp qword [0x425ec0]
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00401620
push 0
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.00401b90
fld qword [0x426050]
mov ax, word [esp + 0x28]
movsx ecx, ax
mov dword [esp + 0x24], ecx
push 0x300
lea edx, [esp + 0x74]
fild dword [esp + 0x28]
push 0
push edx
fsubp st(1)
fstp dword [esp + 0x30]
call fcn.0040b470
mov eax, dword [esp + 0x388]
push eax
call fcn.004010c0
add esp, 0x24
cmp eax, 0x29f
jle 0x407384
mov dword [esp + 0x24], 6
jmp 0x4073b4
cmp eax, 0xef
jle 0x407395
mov dword [esp + 0x24], 5
jmp 0x4073b4
cmp eax, 0x4f
jle 0x4073a4
mov dword [esp + 0x24], 4
jmp 0x4073b4
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x24], ecx
fld qword [0x423400]
mov ebp, dword [esp + 0x360]
fsub qword [0x41f880]
fstp qword [0x423400]
mov ebx, dword [edi + 4]
add ebx, esi
push ebx
push ebp
call fcn.00401ec0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
fld dword [0x423648]
lea edx, [esp + 0x68]
fld qword [0x423630]
push ebx
fsub qword [0x41f878]
push edx
fsubp st(1)
fstp dword [0x423648]
fld qword [0x423630]
fadd qword [0x41f368]
fstp qword [0x423630]
call fcn.00401ec0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
lea eax, [ebx + ebx]
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.00401ec0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
mov ebx, dword [esp + 0x370]
test ebx, ebx
je 0x407471
cmp dword [ebx + 8], eax
je 0x407471
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
jmp 0x4074e8
lea edx, [esp + 0x44]
push esi
push edx
call fcn.00403ad0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f6
mov eax, dword [esp + 0x34]
mov ecx, dword [edi + 4]
shl ecx, 6
push ecx
lea edx, [esp + 0x48]
push edx
mov dword [esp + 0x3c], eax
call fcn.00402fa0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f6
lea eax, [esp + 0x44]
push edi
push eax
mov ecx, eax
push ecx
call fcn.004070d0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f6
test ebx, ebx
je 0x4074e8
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [ebx], edx
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov esi, dword [esp + 0x364]
push edi
push esi
call fcn.00401d60
add esp, 8
test eax, eax
jl 0x40750e
push edi
lea edx, [esp + 0x6c]
push esi
push edx
call fcn.004070d0
add esp, 0xc
jmp 0x40751c
lea eax, [esp + 0x68]
push esi
push eax
call fcn.00402860
add esp, 8
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push esi
push edi
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.00403b50
lea ecx, [esp + 0x58]
push ecx
push ebp
call fcn.00402860
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f6
lea edx, [esp + 0x50]
push edx
push esi
push edi
push ebp
call fcn.00404410
mov esi, dword [esp + 0x34]
add esp, 0x10
cmp esi, 1
jle 0x407672
dec esi
mov ecx, esi
mov ebp, 1
shl ebp, cl
mov ecx, dword [edi + 4]
inc ecx
push ecx
lea ebx, [ebp + ebp*2]
mov eax, 0xffffc27e
lea ebx, [esp + ebx*4 + 0x60]
push ebx
mov word [esp + 0x28], ax
call fcn.00401ec0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
lea edx, [esp + 0x68]
push edx
push ebx
call fcn.00402860
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
test esi, esi
jle 0x4075db
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
push ecx
push edi
push ebx
push ebx
call fcn.00403b50
add esp, 0x14
sub esi, 1
jne 0x4075c1
mov ecx, dword [esp + 0x24]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x40765d
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x5c]
movzx edx, word [esp + 0x18]
movzx eax, word [esp + 0x18]
lea ecx, [edx + eax + 0x6ae5b866]
mov edx, dword [edi + 4]
inc edx
push edx
push esi
mov word [esp + 0x20], cx
call fcn.00401ec0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
lea eax, [esi - 0xc]
push eax
push esi
call fcn.00402860
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079ef
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
lea eax, [esp + 0x74]
push eax
push esi
call fcn.00403b50
inc ebp
add esp, 0x14
add esi, 0xc
cmp ebp, ebx
jl 0x4075f3
dec dword [esp + 0x30]
movzx ecx, word [esp + 0x18]
movzx edx, word [esp + 0x30]
add ecx, edx
mov word [esp + 0x18], cx
fld dword [0x425e80]
movzx eax, word [esp + 0x18]
movzx edx, word [0x425fdc]
movsx ecx, ax
mov dword [esp + 0x10], ecx
movsx eax, dx
fild dword [esp + 0x10]
mov dword [esp + 0x10], eax
faddp st(1)
fsub qword [0x41f870]
fild dword [esp + 0x10]
fmulp st(1)
call fcn.0040b3c0
mov ecx, dword [esp + 0x368]
mov word [0x425fdc], ax
inc dword [esp + 0x18]
fld qword [0x4251c8]
movzx eax, word [esp + 0x20]
mov edx, dword [ecx + 4]
movsx ecx, ax
sub ecx, 0x5a20b3d8
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], edx
xor ebp, ebp
fild dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
fsubp st(1)
fstp qword [0x4251c8]
movzx edx, word [esp + 0x30]
mov ecx, dword [0x4235f8]
movsx eax, dx
lea edx, [eax + ecx + 0x53e88c03]
mov dword [0x4235f8], edx
mov eax, dword [esp + 0x34]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fld dword [esp + 0x40]
fsub qword [0x41f868]
fsub dword [esp + 0x3c]
fsubp st(1)
call fcn.0040b3c0
xor ebx, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], ebx
fld1
mov cx, word [0x423558]
mov dx, word [0x4235f4]
movsx ecx, cx
movsx eax, dx
sub eax, ecx
mov ecx, dword [0x423658]
sub eax, ecx
cmp dword [esp + 0x2c], 0
mov word [0x4235f4], ax
jne 0x4077d8
fld qword [0x4236a8]
fadd qword [0x41f860]
fsub dword [0x4232b8]
call fcn.0040b3c0
mov word [esp + 0x18], ax
fld dword [0x4232b8]
mov eax, dword [esp + 0x10]
fsub st(1)
mov edx, eax
mov esi, 1
sub eax, esi
fstp dword [0x4232b8]
mov dword [esp + 0x10], eax
test edx, edx
je 0x40796d
fld qword [0x4251c8]
mov ax, word [esp + 0x30]
movsx ecx, ax
mov edx, 0x8be218bd
sub edx, ecx
add edx, dword [0x423988]
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
mov dword [esp + 0x2c], 0x20
fsubp st(1)
fstp qword [0x4251c8]
add dword [esp + 0x30], esi
mov eax, dword [0x4232dc]
dec dword [esp + 0x2c]
sub eax, 0x2acc2cda
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fsub dword [0x4251f0]
mov cx, word [esp + 0x20]
movsx edx, cx
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
faddp st(1)
call fcn.0040b3c0
mov edx, dword [esp + 0x10]
mov word [esp + 0x20], ax
fld dword [0x4251f0]
mov eax, dword [esp + 0x368]
fadd st(1)
fstp dword [0x4251f0]
mov ecx, dword [eax + 8]
mov esi, dword [ecx + edx*4]
mov ecx, dword [esp + 0x2c]
shr esi, cl
and esi, 1
jne 0x40789f
cmp dword [esp + 0x28], esi
je 0x407733
cmp dword [esp + 0x28], 1
jne 0x40789f
movzx eax, word [esp + 0x18]
fstp st(0)
movzx edx, word [esp + 0x20]
mov ecx, 0x57af4fd9
sub ecx, eax
imul ecx, edx
mov word [esp + 0x20], cx
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x364]
push ecx
push edi
push eax
push eax
call fcn.00403b50
add esp, 0x14
fld qword [0x423298]
fsub qword [0x41f858]
fadd qword [0x423650]
fstp qword [0x423650]
jmp 0x407731
mov dx, word [esp + 0x18]
movsx eax, dx
mov dword [esp + 0x38], eax
fild dword [esp + 0x38]
fsub dword [esp + 0x3c]
call fcn.0040b3c0
mov dword [0x423cc0], eax
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x24]
fsub st(1)
inc ebp
mov ecx, eax
sub ecx, ebp
fstp dword [esp + 0x3c]
shl esi, cl
mov dword [esp + 0x28], 2
or ebx, esi
cmp ebp, eax
jne 0x407956
fstp st(0)
fld dword [esp + 0x40]
fsub qword [0x41f850]
fstp dword [esp + 0x40]
test eax, eax
jle 0x40791d
mov ebp, dword [esp + 0x1c]
mov esi, eax
lea ebx, [ebx]
mov eax, dword [esp + 0x360]
lea ecx, [esp + 0x50]
push ecx
push ebp
push edi
push eax
push eax
call fcn.00403b50
add esp, 0x14
sub esi, 1
jne 0x407900
add dword [esp + 0x34], 0x34822b1e
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esp + 0x368]
lea ecx, [ebx + ebx*2]
push edi
lea edx, [esp + ecx*4 + 0x68]
push edx
push eax
call fcn.00403b50
fld1
add esp, 0x14
xor ebp, ebp
mov dword [esp + 0x28], 1
xor ebx, ebx
mov ecx, dword [0x425ea4]
imul ecx, ecx, 0x3ca80b69
mov dword [0x425ea4], ecx
jmp 0x407733
mov ecx, dword [esp + 0x24]
fstp st(0)
rol esi, cl
test ebp, ebp
jle 0x4079d4
mov dword [esp + 0x10], ebp
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x360]
lea edx, [esp + 0x50]
push edx
push eax
push edi
push ebp
push ebp
call fcn.00403b50
add ebx, ebx
add esp, 0x14
test ebx, esi
je 0x4079bb
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
lea eax, [esp + 0x74]
push eax
push ebp
call fcn.00403b50
add esp, 0x14
sub dword [esp + 0x10], 1
fld dword [esp + 0x40]
fadd qword [0x423cf8]
fstp qword [0x423cf8]
jne 0x407980
jmp 0x4079db
mov ebp, dword [esp + 0x360]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x50]
push ecx
push edx
push edi
push ebp
call fcn.00404410
add esp, 0x10
mov ebx, dword [esp + 0x370]
mov esi, dword [esp + 0x24]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407a33
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x5c]
mov edi, edx
lea esp, [esp]
push 0
push esi
call fcn.00401180
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407a20
pop esi
pop ebp
test ebx, ebx
pop ebx
push 0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x60]
je 0x407a5a
push eax
push ecx
call fcn.00401180
mov eax, dword [esp + 0x14]
add esp, 0xc
pop edi
add esp, 0x34c
ret
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.00401180
mov eax, dword [esp + 0x18]
add esp, 0x10
pop edi
add esp, 0x34c
ret
mov eax, 0xfffffffc
pop edi
add esp, 0x34c
ret