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

Disassembly:
sub esp, 0x36c
fldz
push ebx
fst dword [esp + 0x50]
push ebp
fldz
xor eax, eax
fst qword [esp + 0x58]
xor ebp, ebp
fxch st(1)
xor ecx, ecx
mov word [esp + 0x28], ax
mov dword [esp + 0x10], ebp
fst dword [esp + 0x24]
fxch st(1)
push esi
fst qword [esp + 0x4c]
mov esi, dword [esp + 0x388]
mov dword [esp + 0x24], ebp
mov word [esp + 0x30], cx
fstp qword [esp + 0x64]
mov edx, dword [esp + 0x14]
imul edx, edx, 0x63835cf1
mov dword [esp + 0x14], edx
mov word [esp + 0x10], ax
lea edx, [esp + 0x6c]
fstp dword [esp + 0x1c]
mov ebx, 1
fld qword [0x425198]
lea ecx, [esp + 0x54]
fsubr qword [0x41f548]
push edx
mov dword [esp + 0x58], ebp
mov dword [esp + 0x70], ebx
fstp qword [0x424630]
mov dword [esp + 0x74], ebx
fld qword [0x41f540]
mov dword [esp + 0x78], ecx
push esi
fstp qword [0x423ad0]
call fcn.004024c0
add esp, 8
test eax, eax
jl 0x407a8f
mov eax, dword [esi + 8]
test byte [eax], bl
je 0x407a8f
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00402640
dec dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
push ebp
lea eax, [esp + 0x4c]
push eax
fsub qword [0x423aa8]
lea ecx, [esp + 0x44]
push ecx
fmul qword [0x423788]
fstp qword [0x423788]
call fcn.00402150
mov dx, word [0x4237c8]
movsx eax, dx
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
fsub dword [0x424188]
call fcn.0040b2b0
push 0x300
lea ecx, [esp + 0x90]
push ebp
mov word [0x423ab4], ax
push ecx
call fcn.0040b8c0
mov edx, dword [esp + 0x3a4]
push edx
call fcn.004023f0
fld qword [0x423030]
add esp, 0x24
fstp dword [0x424014]
cmp eax, 0x29f
jle 0x407373
mov dword [esp + 0x18], 6
jmp 0x4073a3
cmp eax, 0xef
jle 0x407384
mov dword [esp + 0x18], 5
jmp 0x4073a3
cmp eax, 0x4f
jle 0x407393
mov dword [esp + 0x18], 4
jmp 0x4073a3
xor ecx, ecx
cmp eax, 0x17
setg cl
lea ecx, [ecx + ecx + 1]
mov dword [esp + 0x18], ecx
fld qword [esp + 0x4c]
push edi
mov edi, dword [esi + 4]
fadd qword [esp + 0x50]
add edi, ebx
mov ebx, dword [esp + 0x380]
push edi
fstp qword [esp + 0x54]
push ebx
call fcn.004022c0
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4079f4
lea edx, [esp + 0x88]
push edi
push edx
call fcn.004022c0
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4079f4
lea eax, [edi + edi]
push eax
lea ecx, [esp + 0x48]
push ecx
call fcn.004022c0
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, ebp
jne 0x4079f4
mov ebp, dword [esp + 0x390]
test ebp, ebp
je 0x407437
cmp dword [ebp + 8], 0
je 0x407437
mov edx, dword [ebp]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
jmp 0x407512
fldz
lea edx, [esp + 0x38]
push 1
fstp dword [esp + 0x24]
push edx
mov dword [esp + 0x28], 0
call fcn.004022c0
mov edi, eax
add esp, 8
test edi, edi
jne 0x407486
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
lea ecx, [eax*4]
push ecx
push edi
push edx
call fcn.0040b8c0
mov eax, dword [esp + 0x4c]
mov dword [eax], 1
add esp, 0xc
mov dword [esp + 0x38], 1
mov dword [esp + 0x14], edi
test edi, edi
jne 0x4079fb
mov ecx, dword [esi + 4]
shl ecx, 6
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00402db0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079fb
lea eax, [esp + 0x38]
push esi
push eax
mov ecx, eax
push ecx
call fcn.00407100
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079fb
test ebp, ebp
je 0x4074e8
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [ebp], edx
mov dword [ebp + 4], eax
mov dword [ebp + 8], ecx
inc dword [0x42525c]
mov edx, dword [0x42525c]
mov eax, 0xe75ea7ed
sub eax, edx
cmp eax, 0x1b7e764f
jl 0x407512
movzx ecx, word [esp + 0x30]
imul ecx, ecx, 0x4917a7ee
mov word [esp + 0x30], cx
mov edi, dword [esp + 0x384]
push esi
push edi
call fcn.004024c0
add esp, 8
test eax, eax
jl 0x40753b
push esi
lea edx, [esp + 0x8c]
push edi
push edx
call fcn.00407100
add esp, 0xc
jmp 0x40754c
lea eax, [esp + 0x88]
push edi
push eax
call fcn.00403240
add esp, 8
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push ecx
push edi
push esi
lea edx, [esp + 0x44]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.004026f0
lea ecx, [esp + 0x4c]
push ecx
push ebx
call fcn.00403240
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079fb
lea edx, [esp + 0x44]
push edx
push edi
push esi
push ebx
call fcn.00402d50
mov ebx, dword [esp + 0x2c]
add esp, 0x10
cmp ebx, 1
jle 0x4076db
mov eax, dword [esi + 4]
dec ebx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
inc eax
push eax
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x80]
push edi
call fcn.004022c0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f4
mov cx, word [0x423a2c]
movsx edx, cx
add edx, 0x4a930304
mov dword [esp + 0x10], edx
lea eax, [esp + 0x88]
push eax
fild dword [esp + 0x14]
push edi
fadd qword [0x4241c0]
fstp qword [0x4241c0]
call fcn.00403240
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f4
test ebx, ebx
jle 0x40762e
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push ecx
push edx
push esi
push edi
push edi
call fcn.004026f0
add esp, 0x14
sub ebx, 1
jne 0x407614
mov ecx, dword [esp + 0x1c]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x4076db
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x7c]
lea ebx, [ebx]
fld dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
fsubr qword [0x41f860]
mov ecx, dword [0x423f54]
mov dword [esp + 0x10], eax
fiadd dword [esp + 0x10]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
faddp st(1)
call fcn.0040b2b0
mov dword [0x423f54], eax
mov edx, dword [esi + 4]
inc edx
push edx
push edi
call fcn.004022c0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f4
lea eax, [edi - 0xc]
push eax
push edi
call fcn.00403240
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x4079f4
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x44]
push ecx
push edx
push esi
lea eax, [esp + 0x94]
push eax
push edi
call fcn.004026f0
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
jl 0x407650
fld dword [esp + 0x2c]
mov ecx, dword [esp + 0x388]
fadd qword [0x41f858]
xor ebx, ebx
mov dword [esp + 0x30], ebx
fsub dword [0x4237b4]
fadd qword [esp + 0x60]
mov edx, dword [ecx + 4]
mov dword [esp + 0x10], edx
fstp qword [esp + 0x60]
fld dword [0x423024]
fsub qword [0x41f850]
fstp dword [0x423024]
xor edi, edi
xor ebp, ebp
lea ecx, [ecx]
cmp dword [esp + 0x30], 0
fld dword [esp + 0x2c]
fsub qword [0x41f848]
fstp dword [esp + 0x2c]
jne 0x407762
fld dword [0x4239dc]
mov eax, dword [esp + 0x10]
fsub qword [0x41f840]
mov ecx, eax
dec eax
mov dword [esp + 0x10], eax
fstp dword [0x4239dc]
test ecx, ecx
je 0x4078ea
mov dword [esp + 0x30], 0x20
mov dx, word [0x423b98]
mov ecx, dword [esp + 0x18]
movsx eax, dx
sub eax, ecx
add eax, dword [0x423028]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x388]
dec ecx
fild dword [esp + 0x20]
mov dword [esp + 0x30], ecx
fstp qword [0x4236e0]
dec dword [0x423028]
inc dword [esp + 0x18]
fld dword [esp + 0x2c]
mov edx, dword [0x423f54]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 8]
fisub dword [esp + 0x20]
mov eax, dword [esp + 0x10]
mov edx, dword [edx + eax*4]
shr edx, cl
and edx, 1
fstp dword [esp + 0x2c]
jne 0x4077cf
test ebx, ebx
je 0x407720
fld qword [esp + 0x50]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x50]
mov ecx, dword [0x423a28]
sub ecx, 0x1666dc99
mov dword [esp + 0x20], ecx
fild dword [esp + 0x20]
fld qword [esp + 0x50]
dec dword [0x423a28]
fadd qword [0x41f838]
fcompp
fnstsw ax
test ah, 1
jne 0x40783b
fstp st(0)
fld dword [esp + 0x2c]
fsubr qword [0x41f830]
fcomp qword [0x41f828]
fnstsw ax
test ah, 1
jne 0x407851
fld dword [esp + 0x5c]
fsub dword [0x4240a8]
fsub qword [0x41f820]
fstp qword [0x424090]
jmp 0x407851
fld qword [0x4240b8]
fstp qword [esp + 0x68]
fsubr qword [0x4240b8]
fstp qword [0x4240b8]
test edx, edx
jne 0x40787b
cmp ebx, 1
jne 0x40787b
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [esp + 0x388]
push esi
push eax
push eax
call fcn.004026f0
add esp, 0x14
jmp 0x407720
mov eax, dword [esp + 0x1c]
inc edi
mov ecx, eax
sub ecx, edi
shl edx, cl
mov ebx, 2
or ebp, edx
cmp edi, eax
jne 0x407720
mov edi, dword [esp + 0x24]
mov ebx, eax
test ebx, ebx
jle 0x4078bd
nop
mov eax, dword [esp + 0x380]
lea ecx, [esp + 0x44]
push ecx
push edi
push esi
push eax
push eax
call fcn.004026f0
add esp, 0x14
sub ebx, 1
jne 0x4078a0
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x384]
push edi
lea eax, [ebp + ebp*2]
push esi
lea ecx, [esp + eax*4 + 0x88]
push ecx
push edx
call fcn.004026f0
add esp, 0x14
mov ebx, 1
jmp 0x407719
mov ax, word [0x424058]
mov ecx, dword [esp + 0x28]
cwde
sub ecx, eax
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
fadd qword [esp + 0x50]
mov edx, dword [esp + 0x18]
add edx, 0x4866fe6b
mov dword [esp + 0x28], edx
fild dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 5
jp 0x407930
fld qword [0x423bb8]
fsub qword [esp + 0x68]
fstp qword [0x423bb8]
jmp 0x407960
mov ax, word [0x425204]
fld qword [0x424170]
mov cx, word [esp + 0x34]
cwde
movsx edx, cx
sub eax, edx
add eax, 0x56ab5d82
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fsubp st(1)
fstp qword [0x424170]
dec dword [esp + 0x34]
mov ecx, dword [esp + 0x1c]
mov ebx, 1
rol ebx, cl
test edi, edi
jle 0x4079c7
mov dword [esp + 0x34], edi
jmp 0x407980
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x380]
lea eax, [esp + 0x44]
push eax
push ecx
push esi
push edi
push edi
call fcn.004026f0
add ebp, ebp
add esp, 0x14
test ebp, ebx
je 0x4079be
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
push eax
push esi
lea ecx, [esp + 0x94]
push ecx
push edi
call fcn.004026f0
add esp, 0x14
sub dword [esp + 0x34], 1
jne 0x407980
jmp 0x4079ce
mov edi, dword [esp + 0x380]
fld dword [0x424060]
mov eax, dword [esp + 0x24]
fsub qword [0x41f818]
lea edx, [esp + 0x44]
push edx
push eax
push esi
fstp dword [0x424060]
push edi
call fcn.00402d50
add esp, 0x10
mov ebp, dword [esp + 0x390]
mov esi, dword [esp + 0x1c]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407a34
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x7c]
mov edi, edx
push 0
push esi
call fcn.00401ce0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x407a21
pop edi
push 0
lea ecx, [esp + 0x44]
lea edx, [esp + 0x88]
test ebp, ebp
je 0x407a68
push ecx
push edx
call fcn.00401ce0
fld qword [esp + 0x68]
mov eax, dword [esp + 0x1c]
fstp qword [0x4239f0]
add esp, 0xc
pop esi
pop ebp
pop ebx
add esp, 0x36c
ret
lea eax, [esp + 0x38]
push eax
push ecx
push edx
call fcn.00401ce0
fld qword [esp + 0x6c]
mov eax, dword [esp + 0x20]
fstp qword [0x4239f0]
add esp, 0x10
pop esi
pop ebp
pop ebx
add esp, 0x36c
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x36c
ret