Function at 0x1016e550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1016f2a0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x20], edx
mov edi, dword fs:[0]
mov dword [ebp - 0x18], edi
mov dword fs:[0], eax
test byte [esi + 8], 1
je 0x1016e5ab
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 0x14]
test edi, edi
mov dword [ebp - 0x24], ebx
je 0x1016e5b6
mov eax, dword [esi + 0x18]
cmp edi, eax
jae 0x1016e5ba
cmp byte [ebx + edi], 0xbf
jg 0x1016e5c0
jmp 0x1016e7c7
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
jmp 0x1016e5c0
xor edi, edi
jmp 0x1016e5c0
jne 0x1016e7c7
mov ecx, dword [ebp + 0x10]
mov esi, dword [edx]
mov ebx, dword [edx + 8]
mov dword [ebp - 0x28], edi
sub ecx, dword [ebp + 0xc]
mov eax, esi
sub eax, ebx
add ecx, edi
cmp ecx, eax
jbe 0x1016e602
mov dword [ebp - 0x10], 0
push ecx
push ebx
push edx
call fcn.101c4450
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov esi, dword [edx]
mov ecx, dword [edx + 8]
mov eax, esi
sub eax, ecx
cmp eax, edi
jb 0x1016e608
mov dword [ebp - 0x2c], esi
jmp 0x1016e625
mov ecx, ebx
cmp eax, edi
jae 0x1016e5fd
mov dword [ebp - 0x10], 0
push edi
push ecx
push edx
call fcn.101c4450
add esp, 0xc
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x2c], eax
mov edi, dword [edx + 4]
mov ebx, dword [ebp - 0x28]
lea eax, [edi + ecx]
push ebx
push dword [ebp - 0x24]
push eax
mov esi, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add esi, ebx
mov eax, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x2c]
mov dword [eax + 8], esi
jne 0x1016e666
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x10], 0
push eax
call fcn.1000f000
add esp, 4
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov edi, dword [eax + 4]
mov byte [edi + esi], 0x23
inc esi
mov ebx, dword [ebp + 0x10]
mov dword [eax + 8], esi
mov esi, dword [ebp + 0xc]
mov eax, 0x2600
jmp 0x1016e68e
mov ecx, edx
cmp ecx, 0x110000
jne 0x1016e745
cmp esi, ebx
je 0x1016e745
movzx edx, byte [esi]
movzx ecx, dl
test dl, dl
js 0x1016e6b0
inc esi
mov edx, ecx
cmp edx, 0xd
jbe 0x1016e719
jmp 0x1016e680
movzx edi, byte [esi + 1]
and ecx, 0x1f
and edi, 0x3f
cmp dl, 0xdf
jbe 0x1016e6f8
mov ebx, esi
movzx esi, byte [esi + 2]
shl edi, 6
and esi, 0x3f
or esi, edi
cmp dl, 0xf0
jb 0x1016e72c
movzx edx, byte [ebx + 3]
add ebx, 4
shl esi, 6
and ecx, 7
shl ecx, 0x12
and edx, 0x3f
or edx, esi
mov esi, ebx
mov ebx, dword [ebp + 0x10]
or edx, ecx
cmp edx, 0x110000
jne 0x1016e710
jmp 0x1016e745
shl ecx, 6
add esi, 2
or ecx, edi
mov edx, ecx
nop word cs:[eax + eax]
nop dword [eax]
cmp edx, 0xd
ja 0x1016e680
mov ecx, 0x110000
bt eax, edx
jb 0x1016e682
jmp 0x1016e680
shl ecx, 0xc
add ebx, 3
or esi, ecx
mov edx, esi
mov esi, ebx
mov ebx, dword [ebp + 0x10]
cmp edx, 0xd
jbe 0x1016e719
jmp 0x1016e680
mov dword [ebp - 0x10], 0
push ebx
push esi
push dword [ebp - 0x20]
call fcn.1016e820
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
movsd xmm3, qword [esi + 0x34]
movsd xmm1, qword [esi + 0x3c]
movsd xmm2, qword [esi]
mov ecx, dword [ebp - 0x28]
mov dword [edx + 0x18], eax
movzx eax, byte [esi + 0x44]
movsd qword [edx + 0x10], xmm0
movsd qword [edx + 0x3c], xmm1
movsd qword [edx + 0x34], xmm3
movups xmm1, xmmword [esi + 0x20]
mov byte [edx + 0x44], al
movsd qword [edx], xmm2
mov dword [edx + 8], 1
mov dword [edx + 0xc], ecx
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x30]
mov dword [edx + 0x1c], ecx
mov ecx, dword [ebp - 0x18]
movups xmmword [edx + 0x20], xmm1
mov dword [edx + 0x30], eax
mov dword fs:[0], ecx
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x1020cf48
push edi
push 0
push eax
push ebx
call fcn.101cbe90
add esp, 0x14
ud2