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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
mov dl, byte [0x484dec]
push ebp
push esi
push edi
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0xa5]
mov byte [esp + 0xa4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
movsx eax, word [0x475370]
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x5c]
fld qword [eax*8 + 0x475340]
push ecx
lea eax, [esp + 0x78]
fstp qword [esp + 0x34]
push edx
push eax
push 0x484e20
call fcn.00401186
push 0x484e20
call fcn.00401140
lea ecx, [esp + 0x70]
lea edx, [esp + 0x88]
push ecx
push edx
call fcn.004540d0
lea eax, [esp + 0x78]
lea ecx, [esp + 0x90]
push eax
push ecx
fstp st(0)
call fcn.00454060
fcom qword [0x4720a0]
fst qword [esp + 0x34]
add esp, 0x24
fnstsw ax
test ah, 0x41
jne 0x409b12
fsub qword [0x472090]
fcom qword [0x4720a0]
fnstsw ax
test ah, 0x41
je 0x409afb
fst qword [esp + 0x10]
fcom qword [0x4720a0]
fnstsw ax
test ah, 1
je 0x409b36
fadd qword [0x472090]
fcom qword [0x4720a0]
fnstsw ax
test ah, 1
jne 0x409b1f
fst qword [esp + 0x10]
fcom qword [0x472140]
fnstsw ax
test ah, 0x41
jne 0x409b5c
fcom qword [0x472130]
fnstsw ax
test ah, 1
je 0x409b5c
fsub qword [0x4720e0]
fstp qword [esp + 0x10]
jmp 0x409b5e
fstp st(0)
lea edx, [esp + 0x74]
push 0x484e08
push edx
call fcn.004540d0
lea eax, [esp + 0x64]
push 0x484e08
fstp st(0)
push eax
call fcn.004540d0
mov ecx, dword [0x484e08]
mov edx, dword [0x484e0c]
mov eax, dword [0x484e10]
mov dword [esp + 0x28], ecx
mov ecx, dword [0x484e14]
mov dword [esp + 0x2c], edx
mov edx, dword [0x484e18]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], eax
mov eax, dword [0x484e1c]
push ecx
lea edx, [esp + 0x2c]
push 0x475690
push edx
fstp st(0)
mov dword [esp + 0x48], eax
call fcn.00452940
add esp, 0x1c
cmp eax, 0x13ec
jne 0x409c08
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov edi, 0x475260
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x19c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x108], 0
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov byte [esp + 0xa4], 0
and ecx, 3
cmp word [0x475258], dx
rep movsb byte es:[edi], byte [esi]
jne 0x409c78
mov edi, 0x4ef9f0
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x108]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [0x4752e8], dx
jne 0x409cb2
mov edi, 0x4752a8
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [0x475330], dx
jne 0x409d1b
mov edi, 0x47568c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0xa4]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.1_300
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, 0x484dec
lea eax, [esp + 0x108]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409d4b
test cl, cl
je 0x409d47
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409d4b
add eax, 2
add esi, 2
test cl, cl
jne 0x409d27
xor eax, eax
jmp 0x409d50
sbb eax, eax
sbb eax, 0xffffffff
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
test eax, eax
je 0x409ea0
mov esi, 0x475688
lea eax, [esp + 0x108]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409d90
test cl, cl
je 0x409d8c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409d90
add eax, 2
add esi, 2
test cl, cl
jne 0x409d6c
xor eax, eax
jmp 0x409d95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ea0
mov esi, 0x475684
lea eax, [esp + 0x108]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409dcd
test cl, cl
je 0x409dc9
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409dcd
add eax, 2
add esi, 2
test cl, cl
jne 0x409da9
xor eax, eax
jmp 0x409dd2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ea0
mov esi, 0x47568c
lea eax, [esp + 0x108]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409e0a
test cl, cl
je 0x409e06
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409e0a
add eax, 2
add esi, 2
test cl, cl
jne 0x409de6
xor eax, eax
jmp 0x409e0f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ea0
mov eax, dword [0x475214]
mov ecx, dword [0x475210]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push 2
lea edx, [esp + 0x114]
push 1
push edx
push eax
push ecx
push edi
lea edx, [esp + 0x38]
push ebp
push edx
call fcn.00401208
lea eax, [esp + 0x7c]
push eax
call fcn.0044e340
lea ecx, [esp + 0x80]
push ecx
call fcn.0044e180
lea edx, [esp + 0x19c]
lea ecx, [esp + 0x1b4]
push edx
push ecx
push eax
call fcn.00450700
fld qword [esp + 0x1a8]
fabs
fadd qword [esp + 0x6c]
add esp, 0x34
lea edx, [esp + 0x20]
fmul qword [0x472060]
fadd st(0), st(0)
fstp qword [esp]
push edx
push 0x484e20
call fcn.0040137a
add esp, 0x10
mov esi, 0x484dec
lea eax, [esp + 0xa4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409ed0
test cl, cl
je 0x409ecc
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409ed0
add eax, 2
add esi, 2
test cl, cl
jne 0x409eac
xor eax, eax
jmp 0x409ed5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ff7
mov esi, 0x475688
lea eax, [esp + 0xa4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409f0d
test cl, cl
je 0x409f09
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409f0d
add eax, 2
add esi, 2
test cl, cl
jne 0x409ee9
xor eax, eax
jmp 0x409f12
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ff7
mov esi, 0x475684
lea eax, [esp + 0xa4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409f4a
test cl, cl
je 0x409f46
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409f4a
add eax, 2
add esi, 2
test cl, cl
jne 0x409f26
xor eax, eax
jmp 0x409f4f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ff7
mov esi, 0x47568c
lea eax, [esp + 0xa4]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x409f87
test cl, cl
je 0x409f83
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x409f87
add eax, 2
add esi, 2
test cl, cl
jne 0x409f63
xor eax, eax
jmp 0x409f8c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x409ff7
fld qword [esp + 0x30]
fmul qword [0x472120]
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
sub esp, 8
fstp qword [esp]
fld qword [esp + 0x1c]
fsub qword [0x4720f0]
sub esp, 8
fstp qword [esp]
push ecx
call fcn.00454100
mov edx, dword [0x475214]
mov eax, dword [0x475210]
push edx
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push 2
lea ecx, [esp + 0xc8]
push 1
push ecx
push edx
push eax
push edi
lea ecx, [esp + 0xc4]
push ebp
push ecx
call fcn.00401208
add esp, 0x40
pop edi
pop esi
pop ebp
mov esp, ebp
pop ebp
ret