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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x417a83
sub esp, 0x6c
mov eax, dword [esp + 0x70]
test byte [eax], al
lea ecx, [eax + 0x40]
mov dword [esp + 0x68], ecx
mov dword [esp], ecx
call fcn.00402960
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x74]
cmp ecx, eax
setb dl
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0x78]
cmp ebp, ebx
xchg esi, ebx
sete bl
xchg esi, ebx
xchg edi, ebx
setl bl
xchg edi, ebx
and esi, edx
or edi, esi
xchg edi, eax
test al, al
xchg edi, eax
jne 0x4178e0
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x70]
mov esi, dword [edx + 0x4c]
mov dword [esp + 0x54], esi
mov edi, ecx
sub ecx, eax
mov dword [esp + 0x50], ecx
mov eax, ecx
mul esi
mov dword [esp + 0x4c], edx
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x20]
sub edi, ecx
sbb ebp, ebx
mov dword [esp + 0x48], ebp
nop
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov ebx, dword [esp + 0x74]
mov dword [esp + 4], ebx
call fcn.00402920
nop
mov ecx, dword [esp + 0x70]
lea edx, [ecx + 0x28]
mov dword [esp + 0x68], edx
mov dword [esp], edx
call fcn.00402960
mov ecx, dword [esp + 4]
mov dword [esp + 0x1c], ecx
test ecx, ecx
setne dl
mov ebx, dword [esp + 8]
test ebx, ebx
xchg ebp, ebx
setne bl
xchg ebp, ebx
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x54]
imul esi, edi
mov eax, ebx
mov ebx, dword [esp + 0x4c]
add ebx, esi
sar edi, 0x1f
mov esi, dword [esp + 0x50]
imul edi, esi
add ebx, edi
mov dword [esp + 0x50], ebx
or edx, ebp
mov ebp, dword [esp + 8]
mov dword [esp + 0x28], ebp
test dl, dl
je 0x41781b
xor edx, edx
sub edx, ecx
mov ebx, 0
sbb ebx, eax
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
call fcn.00402980
nop
mov eax, dword [esp + 0x70]
lea ecx, [eax + 0x38]
mov dword [esp + 0x68], ecx
mov dword [esp], ecx
call fcn.00402960
mov eax, dword [esp + 4]
test eax, eax
setne cl
mov edx, dword [esp + 8]
test edx, edx
setne bl
or ecx, ebx
mov ebx, dword [esp + 8]
test cl, cl
je 0x41787a
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], eax
xor ecx, ecx
sub ecx, eax
mov ebx, 0
sbb ebx, edx
mov edx, dword [esp + 0x68]
mov dword [esp], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
call fcn.00402980
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
movzx edx, byte [ecx + 0x50]
test dl, dl
jne 0x4178d6
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov esi, dword [edx + 0x18]
nop
inc dword [esi + 0x7c]
mov esi, dword [0x8da5f8]
mov dword [esp + 0x64], esi
mov edi, dword [0x8da5fc]
mov dword [esp + 0x44], edi
mov edx, dword [edx + 0x18]
mov dword [esp + 0x60], edx
xor ebp, ebp
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
xor ebp, ebp
jmp 0x417995
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
jmp 0x4178e4
add esp, 0x6c
ret
movzx esi, byte [ecx + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x41794a
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x2c]
mov dword [esp], ecx
call fcn.004508d0
movsd xmm0, qword [0x7c9a74]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.00450830
mov ebp, dword [esp + 8]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x38]
add ebp, eax
mov eax, dword [esp + 0x3c]
adc edx, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
sub esi, eax
mov eax, dword [esp + 0x50]
sbb eax, ebx
sub esi, ebp
sbb eax, edx
mov dword [esp], ecx
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ebp
call fcn.00417a90
add esp, 0x6c
ret
mov edx, dword [esp + 0x40]
inc edx
mov esi, dword [esp + 0x64]
mov edi, dword [esp + 0x44]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x4c], ebp
mov ecx, dword [esp + 0x70]
mov ebp, edx
mov edx, dword [esp + 0x60]
cmp ebp, edi
jge 0x417a34
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov dword [esp + 0x40], ebp
mov eax, dword [esi + ebp*4]
test byte [eax], al
add eax, 0x948
mov dword [esp], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
call fcn.00417ea0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x4179f3
test al, al
jne 0x417a1b
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x417976
cmp al, 2
je 0x4179fd
cmp al, 3
jne 0x417a16
mov ebp, dword [esp + 0x4c]
add ebp, ecx
mov ecx, dword [esp + 0x54]
adc ecx, edx
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x417976
cmp al, 4
jne 0x417a6c
mov eax, dword [esp + 0x30]
add eax, ecx
mov ebx, dword [esp + 0x34]
adc ebx, edx
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
jmp 0x417976
nop
mov ebp, dword fs:[0x14]
mov ebp, dword [ebp]
mov esi, dword [edx + 0x7c]
lea edi, [esi - 1]
mov dword [edx + 0x7c], edi
cmp esi, 1
jne 0x417a5f
movzx edx, byte [ebp + 0x65]
test dl, dl
je 0x417a5f
mov dword [ebp + 8], 0xfffffade
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
jmp 0x4178e4
lea eax, [0x773b9b]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00430b40
nop
call fcn.00455690
jmp fcn.004176f0