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

Disassembly:
mov al, byte [0x42c7a6]
sub esp, 0x80
test al, al
push ebx
push esi
push edi
mov ebx, ecx
je 0x40a541
mov ecx, dword [0x42c7a8]
xor eax, eax
mov al, byte [0x42c7a7]
and ecx, 0xff
mov dword [esp + 0x18], eax
push ebp
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], ecx
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x50], eax
fmul dword [0x4244d0]
fild dword [esp + 0x1c]
mov dword [esp + 0x54], pe_nt_image_headers32
mov dword [esp + 0x58], 0xd2
mov dword [esp + 0x5c], 0xb4
mov dword [esp + 0x60], 0x96
fsub dword [0x4244cc]
mov dword [esp + 0x64], 0x78
mov dword [esp + 0x68], 0x5a
mov dword [esp + 0x6c], 0x3c
mov dword [esp + 0x70], 0x1e
fmul dword [0x4244c8]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], 0x14a
mov dword [esp + 0x7c], 0x12c
mov dword [esp + 0x80], 0x10e
fadd dword [0x4244c4]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x30], 0x3f000000
mov dword [esp + 0x34], 0x3f400000
mov dword [esp + 0x38], 0x3f800000
mov dword [esp + 0x3c], 0x3f800000
mov dword [esp + 0x20], 0x3e947ae1
mov dword [esp + 0x24], 0x3ee66666
mov dword [esp + 0x28], 0x3f3ae148
mov dword [esp + 0x2c], 0x3f666666
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x3e75c28f
mov dword [esp + 0x48], 0x3ef0a3d7
mov dword [esp + 0x4c], 0x3f451eb8
mov dword [esp + 0x1c], eax
xor esi, esi
jmp 0x40a3b0
mov eax, dword [esp + 0x1c]
xor esi, esi
jmp 0x40a3b0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + eax + 0x20]
test esi, esi
fld st(1)
mov dword [esp + 0x10], edx
jne 0x40a3d0
fstp st(0)
fld dword [0x4244c0]
fld dword [esp + eax + 0x30]
fstp dword [esp + 0x10]
jmp 0x40a401
cmp esi, 0xd
jne 0x40a3e7
fstp st(0)
fld dword [0x4244c0]
fld dword [esp + eax + 0x40]
fstp dword [esp + 0x10]
jmp 0x40a401
cmp esi, 0xe
je 0x40a3f1
cmp esi, 0xf
jne 0x40a401
fstp st(0)
fld dword [0x4244c0]
mov dword [esp + 0x10], 0
fild dword [esp + esi*4 + 0x50]
fadd st(2)
fmul dword [0x4244bc]
fmul dword [0x4244b8]
fld st(0)
fsin
fmul st(2)
fst dword [esp + 0x18]
fadd dword [esp + 0x10]
fmul dword [0x4244b4]
fstp dword [esp + 0x14]
fcos
fmulp st(1)
fld dword [esp + 0x18]
fmul dword [0x4244b0]
fsubr dword [esp + 0x10]
fld st(1)
fmul dword [0x4244ac]
faddp st(1)
fmul dword [0x4244b4]
fstp dword [esp + 0x18]
fsubr dword [esp + 0x10]
fmul dword [0x4244b4]
fld dword [esp + 0x14]
fcomp dword [0x4244a8]
fnstsw ax
test ah, 0x41
jne 0x40a474
mov dword [esp + 0x14], 0x437f0000
fld dword [esp + 0x18]
fcomp dword [0x4244a8]
fnstsw ax
test ah, 0x41
jne 0x40a48d
mov dword [esp + 0x18], 0x437f0000
fcom dword [0x4244a8]
fnstsw ax
test ah, 0x41
jne 0x40a4a2
fstp st(0)
fld dword [0x4244a8]
fld dword [esp + 0x14]
fcomp dword [0x4244c0]
fnstsw ax
test ah, 1
je 0x40a4bb
mov dword [esp + 0x14], 0
fld dword [esp + 0x18]
fcomp dword [0x4244c0]
fnstsw ax
test ah, 1
je 0x40a4d4
mov dword [esp + 0x18], 0
fcom dword [0x4244c0]
fnstsw ax
test ah, 1
je 0x40a4e9
fstp st(0)
fld dword [0x4244c0]
fld dword [esp + 0x14]
lea eax, [esi + ebp]
lea ecx, [ebx + eax*2]
lea edi, [eax + ecx]
call fcn.0041a37c
fld dword [esp + 0x18]
mov byte [edi + 4], al
call fcn.0041a37c
mov byte [edi + 5], al
call fcn.0041a37c
lea ecx, [esi + ebp + 2]
inc esi
cmp esi, 0xf
lea edx, [ebx + ecx*2]
mov byte [ecx + edx], al
jle 0x40a3ac
mov ecx, dword [esp + 0x1c]
add ebp, 0x10
add ecx, 4
cmp ebp, 0x30
mov dword [esp + 0x1c], ecx
jle 0x40a3a4
fstp st(0)
fstp st(0)
pop ebp
jmp 0x40a550
lea edi, [ebx + 4]
mov ecx, 0x30
mov esi, 0x424340
rep movsd dword es:[edi], dword [esi]
mov al, byte [0x42c7a0]
test al, al
je 0x40a5b0
lea esi, [ebx + 5]
mov edi, 0x40
xor eax, eax
xor ecx, ecx
mov al, byte [esi]
mov cl, byte [esi + 1]
mov dword [esp + 0x18], eax
xor edx, edx
fild dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov dl, byte [esi - 1]
fmul qword [0x4244a0]
fild dword [esp + 0x18]
mov dword [esp + 0x18], edx
fmul qword [0x424498]
faddp st(1)
fild dword [esp + 0x18]
fmul qword [0x424490]
faddp st(1)
call fcn.0041a37c
mov byte [esi - 1], al
mov byte [esi], al
mov byte [esi + 1], al
add esi, 3
dec edi
jne 0x40a561
pop edi
pop esi
pop ebx
add esp, 0x80
ret