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

Disassembly:
sub esp, 0x144
push ebx
push ebp
mov ebp, ecx
mov cl, byte [ebp + 8]
xor ebx, ebx
cmp cl, bl
push esi
mov eax, 1
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x3a83126f
mov byte [esp + 0x1b], bl
je 0x418b7a
mov eax, 0x186a0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0x3c23d70a
mov byte [ebp + 8], bl
mov byte [esp + 0x1b], 1
mov dword [ebp + 0xc], 0xa
cmp eax, ebx
mov dword [esp + 0x3c], ebx
jle 0x419201
fld dword [esp + 0x14]
fmul dword [0x4d36b8]
fstp dword [esp + 0x24]
fld dword [esp + 0x14]
fmul dword [0x4d33ec]
fstp dword [esp + 0x20]
fld dword [esp + 0x14]
fmul dword [0x4d345c]
fstp dword [esp + 0x28]
mov eax, dword [ebp + 4]
push eax
lea ecx, [esp + 0x110]
push ecx
mov ecx, dword [ebp]
call fcn.0046b390
lea edx, [esp + 0x70]
cmp edx, eax
je 0x418be0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
fld dword [ebp + 4]
fsub dword [esp + 0x14]
fcom dword [0x4d3370]
fnstsw ax
test ah, 0x41
jne 0x418bfa
fstp dword [esp + 0x38]
jmp 0x418c04
fstp st(0)
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [ebp]
lea edx, [esp + 0x134]
push edx
call fcn.0046b390
lea ecx, [esp + 0x7c]
cmp ecx, eax
je 0x418c3b
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x7c], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
cmp edx, ebx
jne 0x418c49
xor eax, eax
jmp 0x418c51
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
fld dword [esp + 0x14]
dec eax
fadd dword [ebp + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x418c8a
mov edx, dword [ecx + 4]
fstp st(0)
cmp edx, ebx
jne 0x418c79
xor eax, eax
jmp 0x418c81
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
dec eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
lea edx, [esp + 0x148]
mov eax, dword [esp + 0x10]
push eax
push edx
call fcn.0046b390
lea ecx, [esp + 0x88]
cmp ecx, eax
je 0x418cc8
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x88], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
fld dword [ebp + 4]
fsub dword [esp + 0x24]
fcom dword [0x4d3370]
fnstsw ax
test ah, 0x41
jne 0x418ce2
fstp dword [esp + 0x2c]
jmp 0x418cec
fstp st(0)
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x2c]
push eax
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [ebp]
call fcn.0046b390
lea edx, [esp + 0x94]
cmp edx, eax
je 0x418d29
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 0x9c], eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
cmp edx, ebx
jne 0x418d37
xor eax, eax
jmp 0x418d3f
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
fld dword [esp + 0x24]
dec eax
fadd dword [ebp + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x418d78
mov edx, dword [ecx + 4]
fstp st(0)
cmp edx, ebx
jne 0x418d67
xor eax, eax
jmp 0x418d6f
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
dec eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
lea eax, [esp + 0xe8]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.0046b390
lea ecx, [esp + 0xa0]
cmp ecx, eax
je 0x418db6
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa8], edx
fld dword [ebp + 4]
fsub dword [esp + 0x20]
fcom dword [0x4d3370]
fnstsw ax
test ah, 0x41
jne 0x418dd0
fstp dword [esp + 0x30]
jmp 0x418dda
fstp st(0)
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x140]
push ecx
mov ecx, dword [ebp]
call fcn.0046b390
lea edx, [esp + 0xac]
cmp edx, eax
je 0x418e17
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb4], eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
cmp edx, ebx
jne 0x418e25
xor eax, eax
jmp 0x418e2d
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
fld dword [esp + 0x20]
dec eax
fadd dword [ebp + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x418e66
mov edx, dword [ecx + 4]
fstp st(0)
cmp edx, ebx
jne 0x418e55
xor eax, eax
jmp 0x418e5d
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
dec eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
lea eax, [esp + 0xf4]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.0046b390
lea ecx, [esp + 0xb8]
cmp ecx, eax
je 0x418ea4
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xb8], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
fld dword [ebp + 4]
fsub dword [esp + 0x28]
fcom dword [0x4d3370]
fnstsw ax
test ah, 0x41
jne 0x418ebe
fstp dword [esp + 0x34]
jmp 0x418ec8
fstp st(0)
mov dword [esp + 0x34], 0
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x104]
push ecx
mov ecx, dword [ebp]
call fcn.0046b390
lea edx, [esp + 0xc4]
cmp edx, eax
je 0x418f05
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov dword [esp + 0xcc], eax
mov ecx, dword [ebp]
mov edx, dword [ecx + 4]
cmp edx, ebx
jne 0x418f13
xor eax, eax
jmp 0x418f1b
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
fld dword [esp + 0x28]
dec eax
fadd dword [ebp + 4]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fld st(1)
fcompp
fnstsw ax
test ah, 5
jnp 0x418f54
mov edx, dword [ecx + 4]
fstp st(0)
cmp edx, ebx
jne 0x418f43
xor eax, eax
jmp 0x418f4b
mov eax, dword [ecx + 8]
sub eax, edx
sar eax, 2
dec eax
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
lea eax, [esp + 0x118]
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.0046b390
lea ecx, [esp + 0xd0]
cmp ecx, eax
je 0x418f92
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0xd0], edx
mov edx, dword [eax + 8]
mov dword [esp + 0xd4], ecx
mov dword [esp + 0xd8], edx
xor esi, esi
lea edi, [esp + 0x78]
jmp 0x418fa0
mov ecx, dword [esp + 0x158]
fld dword [edi - 8]
mov edx, dword [esp + 0x160]
sub esp, 0xc
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [edi]
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
sub esp, 0xc
mov eax, esp
mov dword [eax + 8], ecx
fstp dword [eax]
mov ecx, 0x4fa2a0
mov dword [eax + 4], ebx
call fcn.0045b8b0
fstp dword [esp + esi*4 + 0x4c]
inc esi
add edi, 0xc
cmp esi, 8
jl 0x418fa0
fld dword [esp + 0x4c]
xor ecx, ecx
fld dword [esp + 0x50]
fcomp dword [esp + 0x4c]
fnstsw ax
test ah, 5
jnp 0x41900a
fld dword [esp + 0x4c]
fcomp dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x419015
fstp st(0)
mov ecx, 1
fld dword [esp + 0x50]
fld dword [esp + 0x54]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x41902f
fcom dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x41903a
fstp st(0)
mov ecx, 2
fld dword [esp + 0x54]
fld dword [esp + 0x58]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x419054
fcom dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x41905f
fstp st(0)
mov ecx, 3
fld dword [esp + 0x58]
fld dword [esp + 0x5c]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x419079
fcom dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x419084
fstp st(0)
mov ecx, 4
fld dword [esp + 0x5c]
fld dword [esp + 0x60]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x41909e
fcom dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x4190a9
fstp st(0)
mov ecx, 5
fld dword [esp + 0x60]
fld dword [esp + 0x64]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4190c3
fcom dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x4190ce
fstp st(0)
mov ecx, 6
fld dword [esp + 0x64]
fld dword [esp + 0x68]
fcomp st(1)
fnstsw ax
test ah, 5
jnp 0x4190ea
fcomp dword [0x4d4238]
fnstsw ax
test ah, 0x44
jp 0x4190f1
jmp 0x4190ec
fstp st(0)
mov ecx, 7
cmp ecx, 1
fld dword [0x4d3370]
jne 0x419106
fstp st(0)
fld dword [esp + 0x14]
fchs
jmp 0x419171
cmp ecx, 2
jne 0x419113
fstp st(0)
fld dword [esp + 0x14]
jmp 0x419171
cmp ecx, 3
jne 0x419126
fstp st(0)
fld dword [esp + 0x14]
fmul dword [0x4d4234]
jmp 0x419171
cmp ecx, 4
jne 0x419133
fstp st(0)
fld dword [esp + 0x24]
jmp 0x419171
cmp ecx, 5
jne 0x419146
fstp st(0)
fld dword [esp + 0x14]
fmul dword [0x4d34f8]
jmp 0x419171
cmp ecx, 6
jne 0x419153
fstp st(0)
fld dword [esp + 0x20]
jmp 0x419171
cmp ecx, 7
jne 0x419166
fstp st(0)
fld dword [esp + 0x14]
fmul dword [0x4d4230]
jmp 0x419171
cmp ecx, 8
jne 0x419171
fstp st(0)
fld dword [esp + 0x28]
cmp ecx, 1
fadd dword [ebp + 4]
fstp dword [ebp + 4]
je 0x419181
cmp ecx, 2
jne 0x4191ec
cmp dword [esp + 0x1c], 1
je 0x419201
fld dword [esp + 0x15c]
mov edx, dword [esp + 0x78]
fld dword [esp + 0x160]
mov dword [esp + 0xe4], edx
fld dword [esp + 0x74]
fld dword [esp + 0x158]
fsub dword [esp + 0x70]
fstp dword [esp + 0x40]
fxch st(2)
fsub st(2)
fstp dword [esp + 0x44]
fstp st(1)
fsub dword [esp + 0xe4]
fld st(0)
fmulp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x44]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esp + 0x40]
faddp st(1)
fsqrt
fcomp dword [0x4d3474]
fnstsw ax
test ah, 5
jnp 0x419201
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x3c], eax
jl 0x418bb0
cmp byte [esp + 0x1b], bl
je 0x419222
fld dword [ebp + 4]
sub esp, 8
fstp qword [esp]
push 0x4d4220
push 0x537638
call fcn.0046dec0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret 0xc