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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x206c
call fcn.00628480
mov ecx, dword [0x85ff50]
mov edx, dword [ecx + 0x34]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
and eax, 0xffff
push 0x800
lea eax, [eax + eax*2]
mov eax, dword [edx + eax*4 + 8]
mov edx, dword [edi + 0x6044]
lea ecx, [esp + 0x7c]
push ecx
push edx
lea ecx, [edi + 0xc]
push ecx
add eax, 0x98
push eax
push 0xc2
push 1
call fcn.004f7180
add esp, 0x1c
test ax, ax
mov word [edi + 0x3c], 0
jle 0x418f69
movzx eax, ax
lea edx, [esp + 0x78]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x418f4f
cmp ecx, dword [edi + 8]
je 0x418f4f
mov edx, dword [0x85ff50]
mov eax, ecx
and eax, 0xffff
lea ebx, [eax + eax*2]
mov eax, dword [edx + 0x34]
shl ebx, 2
mov edx, dword [eax + ebx + 8]
mov esi, dword [edx]
mov edx, dword [0x87b7b4]
lea eax, [eax + ebx + 8]
and esi, 0xffff
shl esi, 5
mov esi, dword [esi + edx + 0x14]
mov esi, dword [esi + 0x7c]
and esi, 0xffff
shl esi, 5
mov esi, dword [esi + edx + 0x14]
mov edx, dword [esi + 0x280]
test edx, edx
jle 0x418f4f
mov eax, dword [eax]
lea edx, [eax + 0xa0]
mov edi, dword [edx]
mov eax, dword [eax + 0xac]
mov dword [esp + 0x20], edi
mov edi, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edi
lea edi, [esp + 0x40]
mov eax, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x28], edx
call fcn.004f6bc0
mov eax, dword [esi + 0x280]
test eax, eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x30], eax
jle 0x418ed0
mov ecx, dword [esi + 0x284]
xor eax, eax
mov dword [esp + 0x2c], ecx
mov edi, edi
mov ecx, dword [esp + 0x2c]
shl eax, 5
add eax, ecx
mov edi, eax
mov cx, word [edi]
cmp cx, 0xffff
je 0x418e66
mov edx, dword [0x85ff50]
mov eax, dword [edx + 0x34]
mov eax, dword [eax + ebx + 8]
movsx esi, word [eax + 0x1f2]
movsx ecx, cx
imul ecx, ecx, 0x34
add ecx, eax
add esi, ecx
lea edx, [edi + 0x10]
push esi
lea eax, [esp + 0x38]
call fcn.004cbe20
fld dword [edi + 0x1c]
fmul dword [esi]
jmp 0x418e7e
lea eax, [esp + 0x40]
push eax
lea edx, [edi + 0x10]
lea eax, [esp + 0x38]
call fcn.004cbe20
fld dword [esp + 0x44]
fmul dword [edi + 0x1c]
fld dword [esp + 0x38]
add esp, 4
fsub dword [esp + 0x20]
fld dword [esp + 0x38]
fsub dword [esp + 0x24]
fld st(1)
fmulp st(2)
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fstp st(1)
faddp st(1)
fld dword [esp + 0xc]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x418eb6
fstp dword [esp + 0xc]
jmp 0x418eb8
fstp st(0)
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x30]
inc eax
mov dword [esp + 0x14], eax
movsx eax, ax
cmp eax, ecx
jl 0x418e20
mov ecx, dword [ebp + 8]
xor eax, eax
mov ax, word [ecx + 0x3c]
cmp ax, 0x400
jge 0x418f4c
fld dword [esp + 0x1c]
lea edx, [eax + 1]
fsub dword [esp + 0xc]
movsx eax, ax
mov word [ecx + 0x3c], dx
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*8]
mov eax, dword [edx]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0xc]
mov dword [ecx + 0x54], eax
mov eax, dword [esp + 0x20]
lea edx, [ecx + 0x44]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x28]
mov dword [edx + 8], eax
fsubr dword [ecx + 0x4c]
fstp dword [ecx + 0x4c]
fld dword [esp + 0x1c]
fadd st(0), st(0)
fld dword [esp + 0xc]
fadd st(0), st(0)
fsubp st(1)
fld dword [0x672af8]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x418f49
fstp st(0)
fld dword [0x672af8]
fstp dword [ecx + 0x50]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jne 0x418d56
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret