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

Disassembly:
sub esp, 0x37c
fldz
push ebx
push ebp
xor eax, eax
mov word [esp + 0x30], ax
xor ebp, ebp
mov dword [esp + 0x38], ebp
fst dword [esp + 8]
fldz
xor ecx, ecx
fst qword [esp + 0x54]
push edi
mov edi, dword [esp + 0x398]
fst qword [esp + 0x60]
fxch st(1)
xor edx, edx
fst dword [esp + 0x14]
mov ebx, 1
mov word [esp + 0x18], cx
fstp dword [esp + 0x38]
lea ecx, [esp + 0x7c]
push ecx
fst qword [esp + 0x20]
lea eax, [esp + 0x70]
fstp qword [esp + 0x2c]
push edi
mov word [esp + 0x18], dx
mov dword [esp + 0x74], ebp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], eax
call fcn.00401f50
add esp, 8
test eax, eax
jl 0x407c20
mov edx, dword [edi + 8]
test byte [edx], bl
je 0x407c20
fld qword [esp + 0x60]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x60]
fld qword [esp + 0x60]
fsubr qword [0x41f868]
fsub qword [0x41f860]
fcomp qword [0x41f858]
fnstsw ax
test ah, 0x41
jp 0x40732f
fld qword [esp + 0x58]
fsub qword [0x41f850]
fcomp qword [0x41f848]
fnstsw ax
test ah, 0x41
jp 0x4072f6
fsubr dword [0x424760]
fstp dword [0x424760]
fld dword [0x424760]
fadd dword [0x423a3c]
call fcn.0040b5b0
mov dword [0x425438], eax
jmp 0x407331
dec dword [esp + 0x18]
fld dword [0x425fa0]
fstp st(0)
fld qword [0x424600]
mov ax, word [esp + 0x18]
mov cx, word [esp + 0x18]
fstp st(0)
mov dx, word [esp + 0x18]
fld qword [0x4255f0]
fstp st(0)
fadd qword [0x4255f0]
fstp qword [0x4255f0]
jmp 0x407331
fstp st(0)
lea eax, [esp + 0x24]
push edi
push eax
call fcn.00401c80
push ebp
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00401850
push 0x300
lea eax, [esp + 0xa0]
push ebp
push eax
call fcn.0040baf0
mov ecx, dword [esp + 0x3b4]
push ecx
call fcn.00403080
fld qword [0x424798]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x4c], edx
fild dword [esp + 0x4c]
mov ecx, eax
add esp, 0x24
fsubp st(1)
fsub qword [0x425768]
fcomp qword [0x41f840]
fnstsw ax
test ah, 0x41
jp 0x4073a6
fld dword [esp + 0x14]
fsub qword [0x41f838]
fstp dword [esp + 0x14]
cmp ecx, 0x29f
jle 0x4073b8
mov dword [esp + 0x30], 6
jmp 0x4073e9
cmp ecx, 0xef
jle 0x4073ca
mov dword [esp + 0x30], 5
jmp 0x4073e9
cmp ecx, 0x4f
jle 0x4073d9
mov dword [esp + 0x30], 4
jmp 0x4073e9
xor eax, eax
cmp ecx, 0x17
setg al
lea eax, [eax + eax + 1]
mov dword [esp + 0x30], eax
mov cx, word [0x4246d8]
movsx edx, cx
mov eax, 0xc51daa4b
sub eax, edx
mov dword [esp + 0x28], eax
push esi
fild dword [esp + 0x2c]
fstp dword [0x423910]
mov esi, dword [edi + 4]
add esi, ebx
mov ebx, dword [esp + 0x390]
push esi
push ebx
call fcn.00401b60
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x407b90
lea ecx, [esp + 0x98]
push esi
push ecx
call fcn.00401b60
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x407b90
lea edx, [esi + esi]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.00401b60
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x407b90
fld dword [esp + 0x10]
fsub qword [0x41f390]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fadd dword [esp + 0x18]
fsub qword [0x41f830]
call fcn.0040b5b0
mov ebp, dword [esp + 0x3a0]
mov dword [0x424794], eax
test ebp, ebp
je 0x4074b3
cmp dword [ebp + 8], 0
je 0x4074b3
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
jmp 0x407524
lea ecx, [esp + 0x50]
push 1
push ecx
call fcn.00401cf0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b97
mov edx, dword [edi + 4]
shl edx, 6
push edx
lea eax, [esp + 0x54]
push eax
call fcn.00403520
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b97
lea ecx, [esp + 0x50]
push edi
push ecx
mov edx, ecx
push edx
call fcn.00407100
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b97
test ebp, ebp
je 0x407524
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x58]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov esi, dword [esp + 0x394]
push edi
push esi
call fcn.00401f50
add esp, 8
test eax, eax
jl 0x40754d
push edi
lea eax, [esp + 0x9c]
push esi
push eax
call fcn.00407100
add esp, 0xc
jmp 0x40755e
lea ecx, [esp + 0x98]
push esi
push ecx
call fcn.00402540
add esp, 8
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x44]
push edx
push eax
push edi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0xa8]
push edx
call fcn.004048c0
fld qword [0x424748]
fsub qword [0x41f390]
mov ecx, 0xc8cc3f
add esp, 0x14
fstp qword [0x424748]
mov eax, dword [0x4254ac]
sub ecx, eax
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
fld qword [0x424748]
fadd dword [esp + 0x18]
dec dword [0x4254ac]
fucompp
fnstsw ax
test ah, 0x44
jp 0x4075cf
fld qword [0x4255f0]
fadd qword [0x41f828]
fstp qword [0x4255f0]
lea edx, [esp + 0x50]
push edx
push ebx
call fcn.00402540
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b97
fld qword [esp + 0x20]
fadd qword [0x41f390]
fstp qword [esp + 0x20]
fld qword [esp + 0x5c]
fsubr qword [0x41f820]
fadd qword [esp + 0x20]
call fcn.0040b5b0
mov ecx, dword [esp + 0x28]
mov dword [0x42549c], eax
lea eax, [esp + 0x44]
push eax
push ecx
push edi
push ebx
call fcn.00405f50
mov ebx, dword [esp + 0x44]
add esp, 0x10
cmp ebx, 1
jle 0x4077d2
fld qword [esp + 0x20]
mov edx, dword [edi + 4]
fsub qword [0x41f818]
dec ebx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
fstp qword [esp + 0x20]
inc edx
push edx
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x90]
push esi
call fcn.00401b60
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b90
fld qword [0x425408]
lea eax, [esp + 0x98]
fmul qword [esp + 0x5c]
push eax
push esi
fstp qword [0x425408]
fld qword [esp + 0x64]
fsub qword [0x41f390]
fstp qword [esp + 0x64]
call fcn.00402540
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b90
test ebx, ebx
jle 0x4076ca
lea esp, [esp]
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
push edx
push edi
push esi
push esi
call fcn.004048c0
add esp, 0x14
sub ebx, 1
jne 0x4076b0
mov ecx, dword [esp + 0x34]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x4077d2
lea esi, [ebp + ebp*2]
lea esi, [esp + esi*4 + 0x8c]
lea esp, [esp]
mov eax, dword [edi + 4]
inc eax
push eax
push esi
call fcn.00401b60
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b90
fld dword [esp + 0x10]
fsub qword [0x41f810]
fld qword [0x423170]
fsub dword [0x4238dc]
fsub qword [0x41f808]
fucompp
fnstsw ax
fld dword [esp + 0x10]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [esp + 0x10]
test ah, 0x44
jp 0x407771
fld dword [esp + 0x18]
fsub dword [0x423134]
fsub dword [0x424758]
mov ecx, dword [0x4239cc]
mov dword [esp + 0x2c], ecx
fild dword [esp + 0x2c]
faddp st(1)
call fcn.0040b5b0
mov dword [0x4239cc], eax
fsubr dword [esp + 0x18]
fstp dword [esp + 0x18]
jmp 0x407791
mov edx, dword [0x425f98]
fstp st(0)
add edx, 0x6363f907
mov dword [esp + 0x2c], edx
fild dword [esp + 0x2c]
fstp dword [esp + 0x10]
dec dword [0x425f98]
lea eax, [esi - 0xc]
push eax
push esi
call fcn.00402540
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b90
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x44]
push ecx
push edx
push edi
lea eax, [esp + 0xa4]
push eax
push esi
call fcn.004048c0
inc ebp
add esp, 0x14
add esi, 0xc
cmp ebp, ebx
jl 0x4076f0
mov ecx, dword [esp + 0x398]
mov edx, dword [ecx + 4]
xor ebx, ebx
xor esi, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], ebx
xor ebp, ebp
lea ebx, [ebx]
cmp dword [esp + 0x18], 0
jne 0x407822
mov eax, dword [esp + 0x2c]
mov ecx, eax
dec eax
mov dword [esp + 0x2c], eax
test ecx, ecx
je 0x407a29
movzx edx, word [esp + 0x38]
sub edx, 0x78292b62
mov dword [esp + 0x18], 0x20
mov word [esp + 0x38], dx
mov eax, dword [esp + 0x398]
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov edx, dword [edx + eax*4]
dec ecx
shr edx, cl
mov dword [esp + 0x18], ecx
and edx, 1
jne 0x407847
test ebx, ebx
je 0x4077f0
inc dword [0x42398c]
mov ecx, dword [0x42398c]
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fadd dword [esp + 0x10]
mov eax, dword [0x425764]
mov cx, word [esp + 0x1c]
mov dword [esp + 0x20], eax
fiadd dword [esp + 0x20]
movsx eax, cx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov ecx, 1
add dword [esp + 0x1c], ecx
dec dword [0x425764]
fcompp
fnstsw ax
test ah, 0x41
jp 0x4078a6
fld qword [0x425fb0]
fsub qword [0x41f800]
fstp qword [0x425fb0]
test edx, edx
jne 0x4078ea
cmp ebx, ecx
jne 0x4078ea
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x390]
lea ecx, [esp + 0x44]
push ecx
push edx
push edi
push eax
push eax
call fcn.004048c0
fld dword [esp + 0x24]
mov ax, word [0x425638]
movsx ecx, ax
mov dword [esp + 0x34], ecx
add esp, 0x14
fild dword [esp + 0x20]
fsubp st(1)
fstp dword [esp + 0x10]
jmp 0x4077f0
fld qword [0x423a70]
mov ax, word [esp + 0x1c]
cwde
add eax, 0x7d325a29
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
add esi, ecx
fild dword [esp + 0x20]
mov ebx, 2
fsubp st(1)
fstp qword [0x423a70]
add dword [esp + 0x1c], ecx
mov ecx, eax
sub ecx, esi
shl edx, cl
or ebp, edx
cmp esi, eax
jne 0x4079cd
test eax, eax
jle 0x407951
mov ebx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x390]
lea ecx, [esp + 0x44]
push ecx
push ebx
push edi
push eax
push eax
call fcn.004048c0
add esp, 0x14
sub esi, 1
jne 0x407934
mov dx, word [0x4253ec]
movzx ecx, word [esp + 0x38]
movsx eax, dx
lea edx, [ecx + eax - 0x72bc0e3d]
mov word [0x4253ec], dx
dec dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
mov ecx, dword [esp + 0x398]
lea edx, [ebp + ebp*2]
push edi
lea eax, [esp + edx*4 + 0x98]
push eax
push ecx
call fcn.004048c0
mov edx, dword [esp + 0x54]
mov dword [esp + 0x34], edx
add esp, 0x14
fild dword [esp + 0x20]
xor esi, esi
mov ebx, 1
xor ebp, ebp
fadd dword [esp + 0x10]
mov ax, word [0x4247dc]
movsx ecx, ax
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fsubp st(1)
fmul dword [esp + 0x3c]
fstp dword [esp + 0x3c]
fld dword [0x423910]
fcomp qword [0x41f7f8]
fnstsw ax
fld dword [0x423910]
fsub qword [0x41f390]
fstp dword [0x423910]
test ah, 0x44
jnp 0x407a16
mov edx, dword [0x4239c0]
mov eax, 0x6331838d
sub eax, edx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fstp qword [esp + 0x5c]
inc dword [0x4239c0]
jmp 0x4077f0
fld qword [esp + 0x5c]
fsubr qword [0x41f7f0]
fstp dword [esp + 0x10]
jmp 0x4077f0
fld qword [esp + 0x64]
mov ecx, dword [esp + 0x34]
fmul qword [0x41f7e8]
mov ebx, 1
rol ebx, cl
fstp qword [esp + 0x64]
test esi, esi
jle 0x407b1f
mov dword [esp + 0x2c], esi
mov edi, edi
or ecx, 0xffffffff
add dword [0x4255c4], ecx
mov edx, dword [0x4255c4]
mov eax, 0x2a6cc347
sub eax, edx
mov edx, dword [0x4253e0]
add edx, eax
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fld qword [esp + 0x64]
inc dword [0x4253e0]
fsubr qword [0x41f7e0]
fcompp
fnstsw ax
test ah, 0x41
jne 0x407aa8
mov ax, word [0x424670]
cwde
add eax, 0xa74a90db
add dword [esp + 0x40], eax
add word [0x424670], cx
jmp 0x407ab2
mov dword [0x4239fc], 0x7a5ea68d
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x390]
lea ecx, [esp + 0x44]
push ecx
push edx
push edi
push esi
push esi
call fcn.004048c0
fld qword [0x4247a8]
fmul qword [0x4239f0]
add ebp, ebp
add esp, 0x14
fstp qword [0x4239f0]
fld qword [0x4247a8]
fadd qword [0x41f390]
fstp qword [0x4247a8]
test ebp, ebx
je 0x407b14
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x44]
push eax
push ecx
push edi
lea edx, [esp + 0xa4]
push edx
push esi
call fcn.004048c0
add esp, 0x14
sub dword [esp + 0x2c], 1
jne 0x407a50
fldz
mov edx, dword [esp + 0x28]
mov eax, 1
fstp qword [esp + 0x64]
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x394]
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
push edx
lea eax, [esp + 0x74]
mov dword [esp + 0x84], eax
push edi
lea eax, [esp + 0x80]
push eax
push ecx
call fcn.004048c0
fld dword [esp + 0x50]
fsub qword [0x41f7d8]
add esp, 0x14
fadd qword [0x425f90]
fstp qword [0x425f90]
fld dword [esp + 0x3c]
fadd qword [0x41f390]
fstp dword [esp + 0x3c]
mov ebp, dword [esp + 0x3a0]
mov esi, dword [esp + 0x34]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407bd3
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x8c]
mov edi, edx
push 0
push esi
call fcn.004021b0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407bc0
pop esi
push 0
lea edx, [esp + 0x44]
lea eax, [esp + 0x98]
test ebp, ebp
je 0x407bf1
push edx
push eax
call fcn.004021b0
add esp, 0xc
jmp 0x407c00
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.004021b0
add esp, 0x10
fld dword [0x42390c]
mov eax, dword [esp + 0x10]
fsubr qword [0x41f7d0]
pop edi
pop ebp
pop ebx
fstp dword [0x42541c]
add esp, 0x37c
ret
pop edi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x37c
ret