Function at 0x4177f0
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, esp
mov dword [esi + 0xb0], ebp
mov dword [esi + 0xb4], esp
mov dword [esi + 0xc0], 0xffffffff
mov dword [esi + 0xbc], 0x577ec0
mov edi, dword [ebp + 0x10]
mov dword [esi + 0x54], ecx
lea ecx, [esi + 0x70]
mov dword [esi + 0x44], edx
mov eax, dword fs:[0]
mov dword [esi + 0xb8], eax
lea eax, [esi + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0
mov dword [esi + 0xc0], 0
push edi
push eax
push dword [ebp + 8]
call fcn.004b46e0
add esp, 0xc
mov ecx, dword [esi + 0x7c]
mov ebx, dword [esi + 0xac]
mov eax, dword [esi + 0x88]
mov edi, dword [esi + 0xa0]
mov dword [esi + 0x28], 1
mov dword [esi + 0x30], 0
mov dword [esi + 0x2c], 0
mov edx, ecx
mov dword [esi + 0x5c], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x14], edi
shr edx, 0x10
mov dword [esi + 0x24], edx
mov edx, ecx
mov edx, ebx
and ecx, 0xff00ff00
sub edx, eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x60], ecx
mov dword [esi + 0x58], edx
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x80]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x8c]
mov dword [esi], eax
mov eax, dword [esi + 0x94]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xa4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0xa8]
mov dword [esi + 0x50], eax
mov eax, ebx
lea eax, [ebx - 1]
mov dword [esi + 0x4c], eax
jmp 0x417939
mov ebx, dword [esi + 0x28]
mov dword [esi + 0x28], ebx
lea eax, [ebx + edx]
push edi
push dword [ebp + 0x14]
push eax
mov ebx, edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x3c]
add ebx, edi
mov edi, dword [esi + 0x14]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x2c], eax
cmp dword [esi + 0x64], 0
je 0x417ad0
mov eax, dword [esi]
mov ecx, dword [esi + 0x4c]
add eax, ecx
cmp eax, dword [esi + 8]
jae 0x417ce4
movzx edx, byte [esi + 0xc]
movzx ecx, byte [esi + 0x24]
or edx, dword [esi + 0x60]
shl ecx, 0x10
or edx, ecx
mov dword [esi + 0x3c], edx
mov edx, dword [esi + 0x10]
mov dword [esi + 0x48], edx
mov dword [esi + 0x34], edx
jmp 0x4179a8
mov eax, dword [esi]
add eax, dword [esi + 0x38]
mov dword [esi], eax
xor eax, eax
cmp dword [esi + 0x10], 0xffffffff
je 0x417995
mov dword [esi + 0x48], eax
mov dword [esi + 0x34], eax
mov eax, dword [esi]
mov ecx, dword [esi + 0x4c]
mov edi, dword [esi + 0x14]
add eax, ecx
cmp eax, dword [esi + 8]
jae 0x417ce4
movzx ecx, byte [edi + eax]
mov ebx, 1
xor eax, eax
mov edx, 1
shld eax, edx, cl
shl ebx, cl
test cl, 0x20
mov ecx, 0
mov edx, edi
cmovne eax, ebx
cmovne ebx, ecx
and eax, dword [esi + 0x3c]
and ebx, dword [esi + 0x6c]
or ebx, eax
je 0x417980
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x40]
cmp eax, ecx
mov edi, ecx
mov ecx, dword [esi]
cmova edi, eax
cmp dword [esi + 0x10], 0xffffffff
lea ebx, [edx + ecx]
cmove edi, eax
mov eax, dword [esi + 0x38]
mov ecx, edi
mov dword [esi + 0x68], edi
cmp edi, eax
cmova eax, edi
nop dword [eax]
cmp eax, ecx
je 0x417a40
mov edi, ecx
mov ecx, dword [esi]
add ecx, edi
cmp ecx, dword [esi + 8]
jae 0x417d5d
mov edx, dword [esi + 0x50]
lea ecx, [edi + 1]
movzx edx, byte [edx + edi]
cmp dl, byte [ebx + edi]
je 0x417a00
mov ecx, dword [esi]
xor eax, eax
sub ecx, dword [esi + 0x40]
cmp dword [esi + 0x10], 0xffffffff
lea ecx, [ecx + edi + 1]
mov dword [esi], ecx
jne 0x41798f
jmp 0x417995
cmp dword [esi + 0x10], 0xffffffff
mov edi, dword [esi + 0x34]
mov ecx, dword [esi + 0x40]
mov eax, 0
cmove edi, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp edi, ecx
jae 0x417ab0
dec ecx
cmp ecx, dword [esi + 0x38]
jae 0x417d83
mov eax, dword [esi]
add eax, ecx
cmp eax, dword [esi + 8]
jae 0x417d9f
mov edx, dword [esi + 0x50]
mov ebx, dword [esi + 0x14]
movzx edx, byte [edx + ecx]
cmp dl, byte [ebx + eax]
je 0x417a60
mov eax, dword [esi]
add eax, dword [esi + 0x5c]
cmp dword [esi + 0x10], 0xffffffff
mov dword [esi], eax
mov eax, dword [esi + 0x58]
jne 0x41798f
jmp 0x417995
mov eax, dword [esi + 0x38]
mov ecx, dword [esi]
cmp dword [esi + 0x10], 0xffffffff
mov edi, dword [esi + 0x48]
mov ebx, 0
cmovne edi, ebx
lea edx, [ecx + eax]
mov ebx, ecx
mov dword [esi], edx
mov dword [esi + 0x10], edi
jmp 0x417b4e
cmp byte [esi + 0x24], 0
jne 0x417ce4
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
test ecx, ecx
je 0x417afc
mov eax, dword [esi + 8]
sub eax, ecx
jbe 0x417af6
cmp byte [edi + ecx], 0xc0
jge 0x417afc
jmp 0x417dc0
jne 0x417dc0
test eax, eax
je 0x417b2e
movzx edx, byte [edi + ecx]
movzx eax, dl
test dl, dl
js 0x417bea
cmp byte [esi + 0xc], 0
je 0x417c64
mov edx, ecx
mov eax, dword [esi + 0xc]
mov dword [esi + 0x24], 0
mov dword [esi + 4], edx
mov ebx, edx
xor al, 1
jmp 0x417b4b
cmp byte [esi + 0xc], 0
je 0x417ce4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [esi + 0x24], 0
xor al, 1
mov edx, ecx
mov ebx, ecx
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0x18]
mov dword [esi + 0x3c], edx
mov edx, dword [esi + 0x30]
sub ebx, dword [esi + 0x2c]
mov eax, edi
mov dword [esi + 0x34], ebx
sub eax, edx
cmp eax, ebx
jae 0x417b90
mov dword [esi + 0xc0], 0
lea ecx, [esi + 0x18]
push ebx
call fcn.0057bdc0
add esp, 4
mov edx, dword [esi + 0x20]
mov edi, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
jmp 0x417b93
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov ebx, dword [esi + 0x34]
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], edx
add eax, edx
add ecx, dword [esi + 0x44]
push ebx
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esi + 0x30]
add esp, 0xc
mov eax, dword [ebp + 0x18]
add edx, ebx
sub edi, edx
mov dword [esi + 0x20], edx
cmp edi, eax
mov edi, eax
jae 0x417910
mov dword [esi + 0xc0], 0
lea ecx, [esi + 0x18]
push edi
call fcn.0057bdc0
add esp, 4
mov ebx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov edi, dword [ebp + 0x18]
jmp 0x417913
mov ebx, edi
movzx edi, byte [edi + ecx + 1]
and eax, 0x1f
and edi, 0x3f
cmp dl, 0xe0
jb 0x417c3d
mov dword [esi + 4], ecx
shl edi, 6
mov ecx, dword [esi + 4]
movzx ecx, byte [ebx + ecx + 2]
mov ebx, dword [esi + 4]
and ecx, 0x3f
or ecx, edi
cmp dl, 0xf0
jb 0x417c50
mov edi, dword [esi + 0x14]
and eax, 7
shl ecx, 6
shl eax, 0x12
movzx edx, byte [edi + ebx + 3]
and edx, 0x3f
or edx, ecx
or eax, edx
mov ecx, ebx
cmp byte [esi + 0xc], 0
jne 0x417b19
jmp 0x417c64
shl eax, 6
or eax, edi
mov edi, ebx
cmp byte [esi + 0xc], 0
jne 0x417b19
jmp 0x417c64
mov edi, dword [esi + 0x14]
shl eax, 0xc
or eax, ecx
mov ecx, ebx
cmp byte [esi + 0xc], 0
jne 0x417b19
cmp eax, 0x110000
je 0x417ce4
mov edx, 1
cmp eax, 0x80
jb 0x417c90
mov edx, 2
cmp eax, 0x800
jb 0x417c90
cmp eax, 0x10000
mov edx, 4
sbb edx, 0
add edx, dword [esi + 4]
mov eax, dword [esi + 8]
je 0x417cb0
mov eax, dword [esi + 8]
sub eax, edx
jbe 0x417caa
cmp byte [edi + edx], 0xbf
jg 0x417cb0
jmp 0x417dbd
jne 0x417dbd
test eax, eax
je 0x417ccc
movzx eax, byte [edi + edx]
mov cl, 1
mov dword [esi + 0xc], ecx
test al, al
jns 0x417b1b
cmp al, 0xe0
jmp 0x417b1b
mov dword [esi + 0x24], 0
mov dword [esi + 4], edx
mov ebx, edx
mov dword [esi + 0xc], 0
jmp 0x417b4e
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
sub eax, edx
cmp eax, ecx
mov eax, ecx
jae 0x417d1a
mov dword [esi + 0xc0], 0
lea ecx, [esi + 0x18]
mov dword [esi], eax
push eax
call fcn.0057bdc0
add esp, 4
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov eax, dword [esi]
jmp 0x417d1d
mov edi, dword [esi + 0x28]
mov ecx, dword [esi + 0x44]
add edi, edx
add ecx, dword [esi + 0x2c]
push eax
push ecx
push edi
mov ebx, edx
mov edi, eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0x20], ebx
movsd xmm0, qword [esi + 0x18]
mov dword [eax + 8], ebx
movsd qword [eax], xmm0
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 8]
mov dword [esi + 0xc0], 0
add ecx, dword [esi]
cmp edx, ecx
cmova ecx, edx
push 0x5ec3dc
call fcn.0057f710
add esp, 4
jmp 0x417de1
mov edx, dword [esi + 0x38]
mov dword [esi + 0xc0], 0
push 0x5ec3bc
call fcn.0057f710
add esp, 4
jmp 0x417de1
mov edx, dword [esi + 8]
mov dword [esi + 0xc0], 0
mov ecx, eax
push 0x5ec3cc
call fcn.0057f710
add esp, 4
jmp 0x417de1
mov dword [esi + 4], edx
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 8]
mov dword [esi + 0xc0], 0
push 0x5ec484
push edx
push dword [esi + 4]
call fcn.0057fc70
add esp, 0xc
ud2