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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x39c
fldz
push ebx
fst qword [esp + 0x20]
push esi
push edi
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x34], edi
fst qword [esp + 0x80]
xor eax, eax
mov word [esp + 0x74], ax
fst qword [esp + 0x68]
fst qword [esp + 0x38]
mov ebx, 1
fst qword [esp + 0x78]
fldz
fst dword [esp + 0x48]
fld qword [esp + 0x78]
fadd qword [0x41f358]
fstp qword [esp + 0x78]
fld qword [esp + 0x78]
fadd qword [0x41f8b8]
fsub qword [0x41f8b0]
fmul qword [esp + 0x38]
fstp qword [esp + 0x38]
fld qword [0x4253e8]
fmul qword [0x41f8a8]
fstp qword [0x4253e8]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
sub ecx, edx
mov dword [esp + 0x34], ecx
dec dword [esp + 0x1c]
fstp dword [esp + 0x18]
fstp qword [esp + 0x40]
add word [0x4259a4], bx
mov eax, dword [0x425a00]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld dword [str.W5l_fMT]
mov cx, word [0x4259a4]
fsub qword [0x41f3d8]
movsx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fsubp st(1)
fsubp st(1)
call fcn.0040b350
mov esi, dword [ebp + 0x14]
mov dword [0x425a00], eax
fld dword [esp + 0x18]
fadd qword [esp + 0x40]
lea ecx, [esp + 0x90]
push ecx
lea eax, [esp + 0x8c]
mov dword [esp + 0x8c], edi
mov dword [esp + 0x94], ebx
fstp qword [esp + 0x44]
push esi
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], eax
call fcn.004017d0
add esp, 8
test eax, eax
jl 0x407b83
mov edx, dword [esi + 8]
test byte [edx], bl
je 0x407b83
fld qword [esp + 0x68]
lea eax, [esp + 0x24]
fld qword [esp + 0x28]
push esi
fsub qword [0x41f8a0]
push eax
fsubp st(1)
fstp qword [esp + 0x70]
fld qword [esp + 0x30]
fadd qword [0x41f358]
fstp qword [esp + 0x30]
call fcn.00401580
push edi
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x5c]
push edx
call fcn.00401210
push 0x300
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.0040b490
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00402390
add esp, 0x24
cmp eax, 0x29f
jle 0x407439
mov dword [esp + 0x20], 6
jmp 0x407469
cmp eax, 0xef
jle 0x40744a
mov dword [esp + 0x20], 5
jmp 0x407469
cmp eax, 0x4f
jle 0x407459
mov dword [esp + 0x20], 4
jmp 0x407469
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x20], edx
mov edi, dword [esi + 4]
add edi, ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00402440
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
lea eax, [esp + 0xb4]
push edi
push eax
call fcn.00402440
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
lea ecx, [edi + edi]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.00402440
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
dec dword [esp + 0x1c]
mov ax, word [0x4255b4]
mov ecx, dword [esp + 0x1c]
cwde
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld qword [esp + 0x38]
fadd qword [0x41f898]
fsub qword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jnp 0x4074fb
add dword [esp + 0x34], 0x31fc35a5
jmp 0x407505
fld qword [0x41f890]
fstp qword [esp + 0x68]
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40752b
cmp dword [eax + 8], 0
je 0x40752b
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
jmp 0x4075de
fldz
xor eax, eax
lea ecx, [esp + 0x4c]
push 1
mov word [esp + 0x18], ax
fstp dword [esp + 0x44]
push ecx
call fcn.00402440
mov edi, eax
add esp, 8
test edi, edi
jne 0x407579
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
lea eax, [edx*4]
push eax
push edi
push ecx
call fcn.0040b490
mov edx, dword [esp + 0x60]
mov dword [edx], 1
add esp, 0xc
mov dword [esp + 0x4c], 1
mov dword [esp + 0x14], edi
test edi, edi
jne 0x407b05
mov eax, dword [esi + 4]
shl eax, 6
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.00403390
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
lea edx, [esp + 0x4c]
push esi
push edx
mov eax, edx
push eax
call fcn.00407170
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
cmp dword [ebp + 0x18], eax
je 0x4075de
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [eax], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov edi, dword [ebp + 0xc]
push esi
push edi
call fcn.004017d0
add esp, 8
test eax, eax
jl 0x407603
push esi
lea edx, [esp + 0xb8]
push edi
push edx
call fcn.00407170
add esp, 0xc
jmp 0x407614
lea eax, [esp + 0xb4]
push edi
push eax
call fcn.00403df0
add esp, 8
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x5c]
push ecx
push edi
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0xc4]
push eax
call fcn.00403a20
lea ecx, [esp + 0x60]
push ecx
push ebx
call fcn.00403df0
add esp, 0x1c
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
lea edx, [esp + 0x5c]
push edx
push edi
push esi
push ebx
call fcn.00403cc0
fld qword [0x4236c8]
fadd qword [esp + 0x78]
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp eax, 1
fstp qword [esp + 0x68]
fld qword [0x4236c8]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x4236c8]
jle 0x4077a8
fld qword [0x424770]
lea ecx, [eax - 1]
fld dword [0x425d8c]
mov ebx, 1
fsub qword [0x41f888]
shl ebx, cl
fsub qword [0x41f880]
lea edi, [ebx + ebx*2]
lea edi, [esp + edi*4 + 0xa8]
fsubp st(1)
fstp qword [0x424770]
fsubr dword [0x425d8c]
fstp dword [0x425d8c]
mov eax, dword [esi + 4]
inc eax
push eax
push edi
call fcn.00402440
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
lea ecx, [esp + 0xb4]
push ecx
push edi
call fcn.00403df0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
mov eax, dword [esp + 0x20]
dec eax
test eax, eax
jle 0x40772c
mov dword [esp + 0x10], eax
lea esp, [esp]
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x5c]
push edx
push eax
push esi
push edi
push edi
call fcn.00403a20
add esp, 0x14
sub dword [esp + 0x10], 1
jne 0x407710
mov ecx, dword [esp + 0x20]
mov eax, 1
shl eax, cl
inc ebx
cmp ebx, eax
mov dword [esp + 0x10], eax
jge 0x4077a3
lea edi, [ebx + ebx*2]
lea edi, [esp + edi*4 + 0xa8]
mov ecx, dword [esi + 4]
inc ecx
push ecx
push edi
call fcn.00402440
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
lea edx, [edi - 0xc]
push edx
push edi
call fcn.00403df0
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x407b05
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x5c]
push eax
push ecx
push esi
lea edx, [esp + 0xc0]
push edx
push edi
call fcn.00403a20
inc ebx
add esp, 0x14
add edi, 0xc
cmp ebx, dword [esp + 0x10]
jl 0x40774a
fld1
mov ebx, dword [ebp + 8]
fld qword [0x4253c8]
mov eax, dword [ebp + 0x10]
fadd qword [esp + 0x28]
mov ecx, dword [eax + 4]
xor edi, edi
mov dword [esp + 0x10], ecx
fstp qword [esp + 0x28]
mov dword [esp + 0x58], edi
fld qword [0x4253c8]
mov dword [esp + 0x28], edi
fsub st(1)
fstp qword [0x4253c8]
fld dword [0x4255b0]
fsub st(1)
fstp dword [0x4255b0]
fld qword [0x4255a8]
fadd qword [esp + 0x38]
fsub dword [0x4255b0]
mov edx, dword [str.TrtD]
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
fmulp st(1)
call fcn.0040b350
mov dword [str.TrtD], eax
fld qword [0x4255a8]
fadd st(1)
mov dword [esp + 0x18], edi
fstp qword [0x4255a8]
fld qword [esp + 0x38]
fadd st(1)
fstp qword [esp + 0x38]
cmp dword [esp + 0x58], 0
fld qword [esp + 0x38]
fadd qword [0x41f878]
fstp qword [esp + 0x38]
jne 0x407874
mov eax, dword [esp + 0x10]
mov ecx, eax
dec eax
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x407977
mov dx, word [0x42552c]
mov ecx, dword [0x425a34]
movsx eax, dx
sub eax, ecx
mov dword [esp + 0x58], 0x20
mov word [0x42552c], ax
inc dword [esp + 0x1c]
fld qword [esp + 0x68]
mov ecx, dword [esp + 0x58]
fadd st(1)
dec ecx
mov dword [esp + 0x58], ecx
fstp qword [esp + 0x68]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
sub eax, edx
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fsub qword [esp + 0x68]
fadd dword [esp + 0x48]
mov eax, dword [edx + 8]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + edx*4]
shr eax, cl
fstp dword [esp + 0x48]
and eax, 1
jne 0x4078c7
cmp dword [esp + 0x18], eax
je 0x40782c
fld qword [0x41f870]
fstp qword [esp + 0x38]
test eax, eax
jne 0x4078fa
cmp dword [esp + 0x18], 1
jne 0x4078fa
mov ecx, dword [esp + 0x24]
fstp st(0)
lea eax, [esp + 0x5c]
push eax
push ecx
push esi
push ebx
push ebx
call fcn.00403a20
fld1
add esp, 0x14
jmp 0x40782c
mov edx, dword [esp + 0x20]
inc edi
mov ecx, edx
sub ecx, edi
shl eax, cl
mov dword [esp + 0x18], 2
or dword [esp + 0x28], eax
cmp edi, edx
jne 0x40796a
mov edi, dword [esp + 0x24]
fstp st(0)
test edx, edx
jle 0x40793b
mov dword [esp + 0x18], edx
lea edx, [esp + 0x5c]
push edx
push edi
push esi
push ebx
push ebx
call fcn.00403a20
add esp, 0x14
sub dword [esp + 0x18], 1
jne 0x407923
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x2c]
push edi
lea ecx, [eax + eax*2]
push esi
lea edx, [esp + ecx*4 + 0xb4]
push edx
push ebx
call fcn.00403a20
fld1
add esp, 0x14
xor edi, edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], edi
fld qword [esp + 0x78]
fstp qword [esp + 0x78]
jmp 0x40782c
mov ecx, dword [esp + 0x20]
fstp st(0)
fld dword [0x42478c]
mov eax, dword [esp + 0x34]
fsub qword [0x41f868]
mov dword [esp + 0x40], eax
mov eax, 1
rol eax, cl
fiadd dword [esp + 0x40]
mov dword [esp + 0x10], eax
fmul qword [esp + 0x38]
fstp qword [esp + 0x38]
test edi, edi
jle 0x407a9c
mov dword [esp + 0x48], edi
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x5c]
push ecx
push edi
push esi
push ebx
push ebx
call fcn.00403a20
fld qword [0x4255a8]
mov dx, word [esp + 0x88]
fsubr qword [0x41f860]
shl dword [esp + 0x3c], 1
movsx eax, dx
mov dword [esp + 0x54], eax
add esp, 0x14
fild dword [esp + 0x40]
fld qword [esp + 0x80]
fsubp st(2)
fcompp
fnstsw ax
fld qword [esp + 0x80]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x80]
test ah, 0x41
jp 0x407a67
fadd dword [0x42361c]
mov eax, 0x539ceb2d
fstp dword [0x42361c]
dec dword [0x425d34]
inc word [0x425544]
fld dword [0x42361c]
mov cx, word [0x425544]
movsx edx, cx
mov ecx, dword [0x425d34]
sub eax, edx
sub eax, ecx
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
fcompp
fnstsw ax
test ah, 0x41
jp 0x407a69
add dword [0x4241f8], 0xef67c7c6
jmp 0x407a69
fstp st(0)
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
test dword [esp + 0x10], edx
je 0x407a8f
lea eax, [esp + 0x5c]
push eax
push edi
push esi
lea ecx, [esp + 0xc0]
push ecx
push ebx
call fcn.00403a20
add esp, 0x14
sub dword [esp + 0x48], 1
jne 0x4079b8
jmp 0x407aa0
mov edi, dword [esp + 0x24]
fldz
mov eax, 1
mov dword [esp + 0x8c], eax
fstp dword [esp + 0x40]
fldz
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
fstp qword [esp + 0x80]
lea eax, [esp + 0x5c]
push eax
push edi
push esi
lea ecx, [esp + 0xa8]
push ecx
lea edx, [esp + 0x9c]
push ebx
mov dword [esp + 0xb8], edx
call fcn.00403a20
fld qword [esp + 0x4c]
fsubr qword [0x41f858]
add esp, 0x14
fmul qword [0x4241d8]
fstp qword [0x4241d8]
mov esi, dword [esp + 0x20]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x407b41
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0xa8]
mov ebx, edx
push 0
push esi
call fcn.004013f0
add esp, 8
add esi, 0xc
sub ebx, 1
jne 0x407b2e
cmp dword [ebp + 0x18], 0
push 0
lea edx, [esp + 0x60]
lea eax, [esp + 0xb8]
je 0x407b69
push edx
push eax
call fcn.004013f0
mov eax, dword [esp + 0x20]
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x50]
push ecx
push edx
push eax
call fcn.004013f0
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xfffffffc
pop ebx
mov esp, ebp
pop ebp
ret