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

Disassembly:
sub esp, 0xf4
push ebx
push ebp
push esi
push edi
mov edx, dword [esp + 0x118]
sub esp, 0xc
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov eax, esp
sub esp, 0xc
mov dword [eax], ecx
mov ecx, dword [esp + 0x134]
mov dword [eax + 4], edx
mov edx, esp
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x124]
mov dword [edx], eax
mov eax, dword [esp + 0x128]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
call fcn.00417fa0
mov eax, dword [ebx + 0xe0]
add esp, 0x18
test eax, eax
mov dword [esp + 0x4c], 0x3f800000
mov dword [esp + 0x60], 0x3f800000
mov dword [esp + 0x74], 0x3f800000
mov dword [esp + 0x88], 0x3f800000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
jne 0x417c1e
mov eax, dword [ebx + 0xd8]
lea edx, [esp + 0x4c]
push edx
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebx + 0xd8]
push 0
push 0xf
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebx + 0xd8]
push 0
push 0x89
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebx + 0xd8]
push 0
push 0x1c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebx + 0xd8]
push 0
push 0xe
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebx + 0xd8]
push 0
push 0x1d
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebx + 0xd8]
push 0
push 0x8d
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebx + 0xd8]
push 1
push 0x1b
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebx + 0xd8]
push 1
push 0x1a
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
xor ebp, ebp
lea eax, [ebx + 0x28]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0xd8]
push 5
xor edi, edi
xor esi, esi
mov ecx, dword [eax]
push 0x13
push eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x2c], edi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0xd8]
push 2
push 0x14
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov ecx, dword [ebx + 4]
xor eax, eax
cmp ecx, edi
mov dword [esp + 0x30], eax
jle 0x417c00
xor ecx, ecx
mov dword [esp + 0x34], ecx
mov edx, dword [ebx + 0x20]
add ecx, edx
cmp dword [ecx + 0x78], ebp
jne 0x417b9e
mov edx, dword [ebx + 0x24]
cmp byte [eax + edx], 1
jne 0x417b9e
fld dword [ecx + 0x7c]
mov esi, edi
mov eax, 0x4c7e94
fld st(0)
fmul dword [eax - 4]
mov edx, dword [ebx + 0x18]
add eax, 0xc
add esi, 0x20
cmp eax, 0x4c7ec4
fadd dword [ecx + 0x54]
fstp dword [esi + edx - 0x20]
mov edx, dword [ebx + 0x18]
fld st(0)
fmul dword [eax - 0xc]
fadd dword [ecx + 0x58]
fstp dword [esi + edx - 0x1c]
mov edx, dword [ebx + 0x18]
fld st(0)
fmul dword [eax - 8]
fadd dword [ecx + 0x5c]
fstp dword [esi + edx - 0x18]
mov edx, dword [ebx + 0x18]
mov ebp, dword [ecx + 0x64]
mov dword [esi + edx - 0x10], ebp
jl 0x4178bd
mov eax, dword [ebx + 0x20]
mov ebp, dword [esp + 0x34]
fstp st(0)
fld dword [eax + ebp + 0x80]
fcomp dword [0x47f344]
lea edx, [eax + ebp + 0x80]
fnstsw ax
and eax, 0x4100
jne 0x417b80
fld dword [ecx + 0x54]
fsub dword [esp + 0x120]
mov eax, dword [esp + 0x120]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x128]
fstp dword [esp + 0x14]
fld dword [ecx + 0x58]
fsub dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov eax, edi
fstp dword [esp + 0x18]
fld dword [ecx + 0x5c]
fsub dword [esp + 0x1c]
mov ecx, dword [edx]
mov edx, 4
mov dword [esp + 0x38], ecx
fst dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
faddp st(1)
fld dword [esp + 0x14]
fmul dword [esp + 0x14]
faddp st(1)
fsqrt
fdivr dword [0x47f354]
fld dword [esp + 0x14]
fmul st(1)
fld st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0x44]
fxch st(1)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x48]
fchs
fld dword [esp + 0x44]
fchs
fld dword [esp + 0x48]
fchs
fstp dword [esp + 0x94]
fxch st(1)
fmul dword [esp + 0x38]
fstp dword [esp + 0x98]
fmul dword [esp + 0x38]
fld dword [esp + 0x94]
fmul dword [esp + 0x38]
mov ecx, dword [ebx + 0x18]
fld dword [esp + 0x98]
fadd dword [ecx + eax]
add ecx, eax
fstp dword [ecx]
mov ecx, dword [ebx + 0x18]
fld st(1)
fadd dword [eax + ecx + 4]
lea ecx, [eax + ecx + 4]
fstp dword [ecx]
mov ecx, dword [ebx + 0x18]
fld st(0)
fadd dword [eax + ecx + 8]
lea ecx, [eax + ecx + 8]
add eax, 0x20
dec edx
fstp dword [ecx]
jne 0x4179e8
mov edx, dword [ebx + 0x20]
fstp st(0)
mov eax, dword [edx + ebp + 0x74]
cmp eax, 0xc
fstp st(0)
je 0x417b80
cmp eax, 2
je 0x417b80
fld dword [0x47f470]
fld dword [esp + 0x14]
call fcn.004650b8
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x18]
call fcn.004650b8
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fcom dword [esp + 0x10]
fnstsw ax
and eax, 0x4100
jne 0x417a83
fstp dword [esp + 0x10]
jmp 0x417a85
fstp st(0)
fld dword [esp + 0x1c]
call fcn.004650b8
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x3c], eax
fild dword [esp + 0x3c]
fcom dword [esp + 0x10]
fnstsw ax
and eax, 0x4100
jne 0x417aae
fstp dword [esp + 0x10]
jmp 0x417ab0
fstp st(0)
fld dword [esp + 0x12c]
fmul dword [0x47f468]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x417aed
fstp st(0)
fld dword [esp + 0x10]
fdiv dword [esp + 0x12c]
fmul dword [0x47f348]
fsub dword [0x47f484]
fmul dword [0x47f470]
fsubr dword [0x47f470]
fld dword [esp + 0x10]
fcomp dword [0x47f56c]
fnstsw ax
test ah, 5
jp 0x417b10
fstp st(0)
fld dword [esp + 0x10]
fsub dword [0x47f34c]
fmul dword [0x47f39c]
fcom dword [0x47f470]
fnstsw ax
and eax, 0x4100
jne 0x417b29
fstp st(0)
fld dword [0x47f470]
jmp 0x417b3e
fcom dword [0x47f344]
fnstsw ax
test ah, 5
jp 0x417b3e
fstp st(0)
fld dword [0x47f344]
mov eax, dword [ebx + 0x18]
lea ebp, [edi + eax + 0x10]
call fcn.004650b8
mov ecx, dword [ebp]
shl eax, 0x18
and ecx, 0xffffff
or eax, ecx
mov dword [ebp], eax
mov edx, dword [ebx + 0x18]
mov ecx, dword [edi + edx + 0x10]
lea eax, [edi + edx]
mov dword [eax + 0x30], ecx
mov edx, dword [ebx + 0x18]
mov ecx, dword [edi + edx + 0x10]
lea eax, [edi + edx]
mov dword [eax + 0x50], ecx
mov edx, dword [ebx + 0x18]
add edi, edx
mov eax, dword [edi + 0x10]
mov dword [edi + 0x70], eax
mov ecx, dword [esp + 0x20]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov edi, esi
mov esi, dword [esp + 0x2c]
add ecx, 4
inc esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], esi
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 4]
inc eax
add ecx, 0x84
cmp eax, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jl 0x417898
test esi, esi
jle 0x417c00
mov edx, dword [esp + 0x24]
mov eax, dword [ebx + 0xd8]
mov edx, dword [edx]
mov ecx, dword [eax]
push edx
push 0
push eax
call dword [ecx + 0x8c]
lea edx, [esi + esi*2]
push 0
add edx, edx
mov eax, dword [ebx + 0xd8]
push edx
mov edx, dword [ebx + 0x1c]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x2c]
push edx
mov edx, dword [ebx + 0x18]
push edx
push 0x1e2
push 4
push eax
call dword [ecx + 0x68]
mov ecx, dword [esp + 0x24]
inc ebp
add ecx, 4
cmp ebp, 0x16
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
jl 0x417855
jmp 0x417f5d
lea eax, [esp + 0x4c]
push eax
push 1
call fcn.0043aed0
add esp, 8
mov eax, 0x4c7e98
fld dword [eax - 8]
fmul dword [0x47f404]
add eax, 0xc
cmp eax, 0x4c7ec8
fstp dword [eax - 0x14]
fld dword [eax - 0x10]
fmul dword [0x47f404]
fstp dword [eax - 0x10]
fld dword [eax - 0xc]
fmul dword [0x47f404]
fstp dword [eax - 0xc]
jl 0x417c32
xor ebp, ebp
mov dword [esp + 0x20], ebp
xor edi, edi
cmp ebp, 5
mov dword [esp + 0x2c], edi
ja case.default.0x417c71
jmp dword [ebp*4 + 0x417f80]
push 0
push 3
call fcn.0043ae20
push 1
jmp 0x417c94
push 0
jmp 0x417c8b
push 1
push 3
call fcn.0043ae20
push 0
push 2
call fcn.0043ae20
mov ecx, dword [ebx + 4]
add esp, 0x10
xor eax, eax
test ecx, ecx
mov dword [esp + 0x30], eax
jle case.0x417c71.1
xor esi, esi
mov dword [esp + 0x10], esi
mov ecx, dword [ebx + 0x20]
mov edx, dword [esp + 0x10]
add ecx, edx
cmp dword [ecx + 0x78], ebp
jne 0x417e8f
mov edx, dword [ebx + 0x24]
cmp byte [eax + edx], 1
jne 0x417e8f
fld dword [ecx + 0x7c]
mov edx, esi
mov eax, 0x4c7e94
fld st(0)
fmul dword [eax - 4]
mov edi, dword [ebx + 0x18]
add eax, 0xc
add edx, 0x20
cmp eax, 0x4c7ec4
fadd dword [ecx + 0x54]
fstp dword [edx + edi - 0x20]
mov edi, dword [ebx + 0x18]
fld st(0)
fmul dword [eax - 0xc]
fadd dword [ecx + 0x58]
fstp dword [edx + edi - 0x1c]
mov edi, dword [ebx + 0x18]
fld st(0)
fmul dword [eax - 8]
fadd dword [ecx + 0x5c]
fstp dword [edx + edi - 0x18]
mov edi, dword [ebx + 0x18]
mov ebp, dword [ecx + 0x64]
mov dword [edx + edi - 0x10], ebp
jl 0x417cde
mov eax, dword [ebx + 0x20]
mov edi, dword [esp + 0x10]
fstp st(0)
fld dword [eax + edi + 0x80]
fcomp dword [0x47f344]
lea edi, [eax + edi + 0x80]
fnstsw ax
and eax, 0x4100
jne 0x417e7c
mov eax, dword [esp + 0x120]
fld dword [ecx + 0x54]
fsub dword [esp + 0x120]
fld dword [ecx + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x124]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x128]
fsub dword [esp + 0x18]
fld dword [ecx + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, esi
fsub dword [esp + 0x1c]
fst dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld st(1)
fmul st(2)
faddp st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fld dword [0x47f354]
fdiv st(1)
fstp dword [esp + 0x24]
fstp st(0)
fld dword [esp + 0x24]
fmul st(2)
fstp dword [esp + 0x98]
fld dword [esp + 0x24]
fmul st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x24]
fmul dword [esp + 0x1c]
fld dword [esp + 0x98]
fchs
fstp dword [esp + 0x40]
fxch st(1)
fchs
fstp dword [esp + 0x44]
fchs
fld dword [edi]
fld dword [esp + 0x40]
fmul st(1)
mov edi, 4
fstp dword [esp + 0x8c]
fld dword [esp + 0x44]
fmul st(1)
fstp dword [esp + 0x90]
fxch st(1)
fmul st(1)
fxch st(1)
fstp st(0)
mov ecx, dword [ebx + 0x18]
fld dword [esp + 0x8c]
fadd dword [ecx + eax]
add ecx, eax
fstp dword [ecx]
mov ecx, dword [ebx + 0x18]
fld dword [esp + 0x90]
fadd dword [eax + ecx + 4]
lea ecx, [eax + ecx + 4]
fstp dword [ecx]
mov ecx, dword [ebx + 0x18]
fld st(0)
fadd dword [eax + ecx + 8]
lea ecx, [eax + ecx + 8]
add eax, 0x20
dec edi
fstp dword [ecx]
jne 0x417e0a
mov eax, dword [ebx + 0x18]
fstp st(0)
mov ecx, dword [esi + eax + 0x10]
lea eax, [esi + eax + 0x10]
or ecx, 0xff000000
mov dword [eax], ecx
mov ecx, dword [ebx + 0x18]
lea eax, [esi + ecx]
mov ecx, dword [esi + ecx + 0x10]
mov dword [eax + 0x30], ecx
mov eax, dword [ebx + 0x18]
add eax, esi
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x50], ecx
mov eax, dword [ebx + 0x18]
add esi, eax
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x70], ecx
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x20]
inc edi
mov esi, edx
mov dword [esp + 0x2c], edi
mov edx, dword [esp + 0x10]
mov ecx, dword [ebx + 4]
inc eax
add edx, 0x84
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jl 0x417cb5
test edi, edi
jle case.0x417c71.1
mov edx, dword [ebx + ebp*4 + 0x80]
push edx
call fcn.0043d750
add esp, 4
test edi, edi
jle case.0x417c71.1
xor ebp, ebp
mov dword [esp + 0x28], edi
mov eax, dword [ebx + 0x18]
mov ecx, 8
add eax, ebp
lea edi, [esp + 0xa4]
push 0
push 0
lea esi, [eax + 0x40]
push 3
rep movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x60]
mov ecx, 8
lea edi, [esp + 0xd0]
push eax
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, eax
lea edi, [esp + 0xf4]
push 0x1e2
rep movsd dword es:[edi], dword [esi]
push 4
call fcn.0043cf90
push 0
push 0
lea ecx, [esp + 0xc4]
push 3
push ecx
push 0x1e2
push 4
call fcn.0043cf90
mov eax, dword [esp + 0x58]
add esp, 0x30
add ebp, 0x80
dec eax
mov dword [esp + 0x28], eax
jne 0x417ed3
mov ebp, dword [esp + 0x20]
inc ebp
cmp ebp, 0x16
mov dword [esp + 0x20], ebp
jl 0x417c66
push 0
push 2
call fcn.0043ae20
push 0
push 3
call fcn.0043ae20
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret 0x28