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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4182b3
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.00402090
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 0x418110
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.00402050
nop
mov ecx, dword [esp + 0x70]
lea edx, [ecx + 0x28]
mov dword [esp + 0x68], edx
mov dword [esp], edx
call fcn.00402090
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 0x41804b
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.004020b0
nop
mov eax, dword [esp + 0x70]
lea ecx, [eax + 0x38]
mov dword [esp + 0x68], ecx
mov dword [esp], ecx
call fcn.00402090
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 0x4180aa
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.004020b0
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x70]
movzx edx, byte [ecx + 0x50]
test dl, dl
jne 0x418106
mov edx, dword fs:[0x14]
mov edx, dword [edx]
mov esi, dword [edx + 0x18]
nop
inc dword [esi + 0x7c]
mov esi, dword [0x1265f48]
mov dword [esp + 0x64], esi
mov edi, dword [0x1265f4c]
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 0x4181c5
mov edx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
jmp 0x418114
add esp, 0x6c
ret
movzx esi, byte [ecx + 0x20]
xchg esi, eax
test al, al
xchg esi, eax
je 0x41817a
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.00451970
movsd xmm0, qword [0xf8fd6c]
mulsd xmm0, qword [esp + 8]
movsd qword [esp], xmm0
call fcn.004518d0
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.004182c0
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 0x418264
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.004186d0
movzx eax, byte [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp al, 1
ja 0x418223
test al, al
jne 0x41824b
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
jmp 0x4181a6
cmp al, 2
je 0x41822d
cmp al, 3
jne 0x418246
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 0x4181a6
cmp al, 4
jne 0x41829c
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 0x4181a6
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 0x41828f
movzx edx, byte [ebp + 0x65]
test dl, dl
je 0x41828f
mov dword [ebp + 8], 0xfffffade
mov edx, dword [esp + 0x54]
mov ebp, dword [esp + 0x4c]
jmp 0x418114
lea eax, [0xcbefd5]
mov dword [esp], eax
mov dword [esp + 4], 0x20
call fcn.00431490
nop
call fcn.00457160
jmp fcn.00417f20