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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x425fe8]
xor eax, esp
mov dword [esp + 0x78], eax
fldz
push ebx
fst qword [esp + 0x10]
push esi
fldz
mov esi, dword [ebp + 8]
mov eax, dword [esi]
fst dword [esp + 8]
mov ebx, dword [esi + 4]
fxch st(1)
fst qword [esp + 0x24]
mov ecx, eax
fxch st(1)
lea edx, [eax*8]
fstp dword [esp + 0x20]
add ebx, ebx
add ebx, ebx
shr ecx, 0x1d
push edi
mov edi, dword [ebp + 0xc]
fstp qword [esp + 0x30]
mov eax, dword [0x425c58]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
add ebx, ebx
or ebx, ecx
mov dword [esp + 0x14], edx
fadd qword [esp + 0x18]
call fcn.0040b450
mov dword [0x425c58], eax
mov ecx, ebx
shr ecx, 0x18
mov edx, ebx
shr edx, 0x10
mov eax, ebx
shr eax, 8
mov byte [esp + 0x3a], al
mov byte [esp + 0x38], cl
mov byte [esp + 0x39], dl
inc word [0x42493c]
mov cx, word [0x42493c]
movsx edx, cx
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fld qword [esp + 0x30]
mov eax, dword [0x425c90]
fsub qword [0x41f830]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
faddp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x40665b
mov ecx, dword [0x425778]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0xc]
fsubr dword [esp + 0x10]
call fcn.0040b450
mov dword [0x425778], eax
fld qword [esp + 0x28]
mov byte [esp + 0x3b], bl
fsub dword [0x423408]
mov eax, dword [esp + 0x14]
mov ecx, eax
shr ecx, 0x18
fstp qword [esp + 0x30]
mov ebx, 0x38
fld qword [esp + 0x28]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x28]
fld dword [esp + 0xc]
fmul qword [0x41f828]
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fsub st(1)
fstp dword [esp + 0xc]
fld dword [esp + 0xc]
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
fld dword [esp + 0x24]
fld dword [esp + 0x24]
mov edx, dword [0x4256dc]
fsub qword [0x41f820]
mov dword [esp + 0x10], edx
mov edx, eax
shr edx, 0x10
fiadd dword [esp + 0x10]
fsubp st(1)
fstp dword [esp + 0x24]
inc dword [0x4256dc]
fld qword [esp + 0x18]
mov byte [esp + 0x3c], cl
fld qword [esp + 0x28]
mov ecx, eax
fsubr qword [0x41f818]
shr ecx, 8
mov byte [esp + 0x3d], dl
mov byte [esp + 0x3e], cl
fsubp st(1)
fstp qword [esp + 0x18]
fadd qword [esp + 0x28]
mov byte [esp + 0x3f], al
mov eax, dword [esi]
and eax, 0x3f
fstp qword [esp + 0x28]
cmp eax, 0x38
jb 0x40671a
mov ebx, 0x78
push 0x40
lea edx, [esp + 0x44]
push 0
push edx
sub ebx, eax
call fcn.0040b220
push ebx
lea eax, [esp + 0x50]
push eax
push esi
mov byte [esp + 0x58], 0x80
call fcn.00404740
push 8
lea ecx, [esp + 0x54]
push ecx
mov dword [0x425bbc], 0xef0d85d4
push esi
call fcn.00404740
fld dword [esp + 0x30]
fsub qword [0x41f810]
add esp, 0x24
fsub qword [0x41f808]
fld dword [esp + 0xc]
fadd qword [esp + 0x18]
fadd qword [0x423cf8]
fucompp
fnstsw ax
fld qword [esp + 0x18]
fld1
fadd st(1), st(0)
fxch st(1)
fstp qword [esp + 0x18]
test ah, 0x44
jp 0x40679c
fld qword [esp + 0x30]
fsub qword [0x41f800]
fadd dword [esp + 0xc]
fstp dword [esp + 0xc]
fld qword [0x41f7f8]
lea ebx, [edi + 2]
fld qword [0x41f7f0]
add esi, 8
fld qword [0x41f7e8]
mov edi, 8
jmp 0x4067bd
fxch st(2)
mov dl, byte [esi + 3]
fxch st(2)
mov byte [ebx - 2], dl
fst qword [esp + 0x28]
mov al, byte [esi + 2]
mov byte [ebx - 1], al
mov cx, word [0x425ca0]
mov edx, dword [0x4255e8]
movsx eax, cx
sub edx, eax
cmp edx, 0xb909b2d1
je 0x406817
dec word [0x42394c]
mov ax, word [0x42394c]
movsx ecx, ax
add ecx, 0x1aca72b1
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fsub qword [esp + 0x30]
fmul qword [0x4255b8]
fstp qword [0x4255b8]
mov edx, dword [esi]
shr edx, 8
mov byte [ebx], dl
mov al, byte [esi]
mov byte [ebx + 1], al
mov ecx, dword [0x425c48]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fld dword [0x4239a4]
fcompp
fnstsw ax
test ah, 1
jne 0x406869
mov dx, word [str._SH]
movsx eax, dx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fld dword [0x4239b0]
fadd st(3)
fsub st(4)
fsubp st(1)
call fcn.0040b450
mov word [str._SH], ax
mov cx, word [0x425bc0]
movsx edx, cx
mov ecx, dword [0x42570c]
dec word [0x425bc0]
mov eax, 0x65da60c4
sub eax, edx
add ecx, eax
cmp ecx, 0xbb648526
jle 0x4068b9
fld dword [0x425bb4]
fsub st(4)
fstp dword [0x425bb4]
fld qword [0x425bf0]
fsub dword [0x425bb4]
fadd qword [0x425728]
fstp qword [0x425728]
jmp 0x4068cf
fld dword [esp + 0xc]
fmul qword [esp + 0x18]
fstp qword [esp + 0x18]
fld dword [esp + 0xc]
fadd st(4)
fstp dword [esp + 0xc]
add esi, 4
add ebx, 4
sub edi, 1
jne 0x4067bb
mov ecx, dword [esp + 0x84]
fstp st(1)
pop edi
fstp st(1)
pop esi
fstp st(1)
pop ebx
fstp st(0)
xor ecx, esp
call fcn.0040b436
mov esp, ebp
pop ebp
ret