Function at 0x1001efa0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
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], 0x100202b0
mov dword [esi + 0x54], ecx
mov ecx, dword [ebp + 0x10]
lea edi, [esi + 0x70]
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 + 0x30], 0
mov dword [esi + 0x34], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0xc0], 0
push ecx
push eax
push dword [ebp + 8]
mov dword [esi + 0x44], edx
push edx
push edi
call fcn.10055f00
add esp, 0x14
mov ecx, dword [esi + 0x7c]
mov eax, dword [esi + 0x88]
mov ebx, dword [esi + 0xa0]
mov edi, dword [esi + 0xa4]
mov dword [esi + 0x3c], 1
mov dword [esi + 0x24], 0
mov edx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x5c], eax
mov dword [esi + 8], edi
mov dword [esi + 0x18], ebx
shr edx, 0x10
mov dword [esi + 0x1c], edx
mov edx, ecx
and ecx, 0xff00ff00
mov dword [esi + 0x60], ecx
mov ecx, dword [esi + 0xac]
mov edx, ecx
mov dword [esi + 0x2c], ecx
sub edx, eax
mov eax, dword [esi + 0x70]
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 + 0x68], 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 + 0x14], eax
mov eax, dword [esi + 0xa8]
mov dword [esi + 0x50], eax
mov eax, ecx
lea eax, [ecx - 1]
mov dword [esi + 0x4c], eax
xor eax, eax
jmp 0x1001f0f1
mov eax, dword [esi + 0x3c]
mov edi, ebx
mov edx, dword [esi + 0x24]
mov ebx, dword [esi + 0x28]
mov dword [esi + 0x3c], eax
add eax, edi
add edx, dword [esi + 0x44]
push ebx
push edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, edi
add esp, 0xc
mov ecx, dword [esi + 0x10]
add eax, ebx
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x38], eax
mov dword [esi + 0x24], ecx
cmp dword [esi + 0x64], 0
mov dword [esi + 0x20], eax
je 0x1001f2a0
mov eax, dword [esi]
mov ecx, dword [esi + 0x4c]
add ecx, eax
cmp ecx, edi
jae 0x1001f452
movzx edx, byte [esi + 0xc]
movzx eax, byte [esi + 0x1c]
or edx, dword [esi + 0x60]
shl eax, 0x10
or edx, eax
mov dword [esi + 0x6c], edx
mov edx, dword [esi + 0x14]
mov dword [esi + 0x48], edx
mov dword [esi + 0x28], edx
jmp 0x1001f146
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x48], ecx
mov dword [esi + 0x28], ecx
mov eax, dword [esi]
mov ecx, dword [esi + 0x4c]
add ecx, eax
cmp ecx, edi
jae 0x1001f452
movzx ecx, byte [ebx + ecx]
mov edi, 1
xor edx, edx
mov eax, 1
shld edx, eax, cl
shl edi, cl
test cl, 0x20
mov eax, 0
cmovne edx, edi
cmovne edi, eax
and edx, dword [esi + 0x6c]
and edi, dword [esi + 0x68]
or edi, edx
je 0x1001f1f0
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x40]
cmp eax, ecx
mov edx, ecx
mov ecx, dword [esi + 0x2c]
cmova edx, eax
cmp dword [esi + 0x14], 0xffffffff
cmove edx, eax
mov eax, ebx
mov ebx, ecx
cmp edx, ecx
mov ecx, dword [esi]
mov dword [esi + 0x10], edx
cmova ebx, edx
lea edi, [eax + ecx]
mov ecx, edx
nop dword [eax]
cmp ebx, ecx
je 0x1001f210
mov eax, dword [esi]
add eax, ecx
cmp eax, dword [esi + 8]
jae 0x1001f4c9
mov edx, dword [esi + 0x50]
lea eax, [ecx + 1]
movzx edx, byte [edx + ecx]
cmp dl, byte [edi + ecx]
mov ecx, eax
je 0x1001f1a0
mov ecx, dword [esi]
sub ecx, dword [esi + 0x40]
add ecx, eax
mov dword [esi], ecx
xor ecx, ecx
cmp dword [esi + 0x14], 0xffffffff
jne 0x1001f12b
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0x18]
jmp 0x1001f137
mov eax, dword [esi]
xor ecx, ecx
mov edi, dword [esi + 8]
add eax, dword [esi + 0x2c]
cmp dword [esi + 0x14], 0xffffffff
mov dword [esi], eax
jne 0x1001f131
jmp 0x1001f137
cmp dword [esi + 0x14], 0xffffffff
mov ecx, dword [esi + 0x28]
mov eax, 0
mov edi, dword [esi + 8]
cmove ecx, eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x40]
nop dword [eax + eax]
cmp dword [esi + 0x10], ecx
jae 0x1001f280
dec ecx
cmp ecx, dword [esi + 0x2c]
jae 0x1001f4f1
mov eax, dword [esi]
lea edx, [ecx + eax]
cmp edx, edi
jae 0x1001f50e
mov eax, dword [esi + 0x50]
mov ebx, edi
mov edi, dword [esi + 0x18]
movzx eax, byte [eax + ecx]
cmp al, byte [edi + edx]
mov edi, ebx
je 0x1001f230
mov eax, dword [esi]
mov ecx, dword [esi + 0x58]
mov ebx, dword [esi + 0x18]
add eax, dword [esi + 0x5c]
cmp dword [esi + 0x14], 0xffffffff
mov dword [esi], eax
jne 0x1001f131
jmp 0x1001f137
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi]
cmp dword [esi + 0x14], 0xffffffff
mov ebx, dword [esi + 0x48]
mov edi, 0
lea edx, [ecx + eax]
cmovne ebx, edi
mov dword [esi], edx
mov dword [esi + 0x14], ebx
jmp 0x1001f313
cmp byte [esi + 0x1c], 0
jne 0x1001f452
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1001f2c6
cmp ecx, edi
jae 0x1001f2c0
cmp byte [ebx + ecx], 0xc0
jge 0x1001f2c6
jmp 0x1001f52c
jne 0x1001f52c
cmp ecx, edi
jne 0x1001f2e7
cmp byte [esi + 0xc], 0
je 0x1001f452
mov eax, dword [esi + 0xc]
mov dword [esi + 0x1c], 0
mov edx, edi
mov dword [esi + 4], edi
mov ecx, edi
jmp 0x1001f30e
movzx edx, byte [ebx + ecx]
movzx eax, dl
test dl, dl
js 0x1001f34f
cmp byte [esi + 0xc], 0
je 0x1001f3b1
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
mov ecx, edx
mov dword [esi + 0x1c], 0
mov dword [esi + 4], edx
xor al, 1
mov dword [esi + 0xc], eax
mov ebx, dword [esi + 0x20]
mov eax, dword [esi + 0x30]
sub ecx, dword [esi + 0x24]
mov dword [esi + 0x10], edx
sub eax, ebx
mov dword [esi + 0x28], ecx
cmp eax, ecx
jae 0x1001f0c0
mov dword [esi + 0xc0], 0
push ecx
push ebx
lea eax, [esi + 0x30]
push eax
call fcn.1005da00
add esp, 0xc
mov eax, dword [esi + 0x34]
mov edi, dword [esi + 0x38]
jmp 0x1001f0c5
movzx edi, byte [ebx + ecx + 1]
and eax, 0x1f
and edi, 0x3f
cmp dl, 0xe0
jb 0x1001f39f
mov dword [esi + 4], ecx
movzx ecx, byte [ebx + ecx + 2]
shl edi, 6
and ecx, 0x3f
or ecx, edi
cmp dl, 0xf0
jb 0x1001f431
mov edx, dword [esi + 4]
and eax, 7
shl ecx, 6
shl eax, 0x12
movzx edx, byte [ebx + edx + 3]
and edx, 0x3f
or edx, ecx
or eax, edx
mov edi, dword [esi + 8]
cmp byte [esi + 0xc], 0
jne 0x1001f2fc
jmp 0x1001f3b1
shl eax, 6
or eax, edi
mov edi, dword [esi + 8]
cmp byte [esi + 0xc], 0
jne 0x1001f2fc
cmp eax, 0x110000
je 0x1001f452
mov edx, 1
cmp eax, 0x80
jb 0x1001f3e1
mov edx, 2
cmp eax, 0x800
jb 0x1001f3e1
cmp eax, 0x10000
mov edx, 4
sbb edx, 0
add edx, dword [esi + 4]
je 0x1001f3fb
cmp edx, edi
jae 0x1001f3f5
cmp byte [ebx + edx], 0xbf
jg 0x1001f3fb
jmp 0x1001f529
jne 0x1001f529
cmp edx, edi
jne 0x1001f419
mov dword [esi + 0x1c], 0
mov edx, edi
mov dword [esi + 4], edi
mov ecx, edi
mov dword [esi + 0xc], 0
jmp 0x1001f313
movzx eax, byte [ebx + edx]
mov dword [esi + 0x10], edx
mov dl, 1
mov dword [esi + 0xc], edx
test al, al
js 0x1001f448
mov edx, dword [esi + 0x10]
jmp 0x1001f2ff
shl eax, 0xc
or eax, ecx
mov edi, dword [esi + 8]
cmp byte [esi + 0xc], 0
jne 0x1001f2fc
jmp 0x1001f3b1
mov edx, dword [esi + 0x10]
cmp al, 0xe0
jmp 0x1001f2ff
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0x30]
mov ebx, dword [esi + 0x20]
sub ecx, dword [esi + 0x24]
sub eax, ebx
cmp eax, ecx
jae 0x1001f488
mov dword [esi + 0xc0], 0
mov dword [esi], ecx
push ecx
push ebx
lea eax, [esi + 0x30]
push eax
call fcn.1005da00
add esp, 0xc
mov edx, dword [esi + 0x34]
mov ebx, dword [esi + 0x38]
mov ecx, dword [esi]
jmp 0x1001f48b
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x44]
add edx, ebx
add eax, dword [esi + 0x24]
push ecx
push eax
push edx
mov edi, ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
add ebx, edi
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0x38], ebx
movsd xmm0, qword [esi + 0x30]
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 + 0x10]
mov eax, dword [esi + 8]
mov dword [esi + 0xc0], 0
add ecx, dword [esi]
cmp eax, ecx
cmova ecx, eax
push 0x100633b0
push eax
push ecx
call fcn.1005f0e0
add esp, 0xc
jmp 0x1001f54e
mov dword [esi + 0xc0], 0
push 0x10063390
push dword [esi + 0x2c]
push ecx
call fcn.1005f0e0
add esp, 0xc
jmp 0x1001f54e
mov dword [esi + 0xc0], 0
push 0x100633a0
push edi
push edx
call fcn.1005f0e0
add esp, 0xc
jmp 0x1001f54e
mov dword [esi + 4], edx
mov dword [esi + 0xc0], 0
push 0x100633d8
mov eax, dword [esi + 8]
push eax
push dword [esi + 4]
push eax
push dword [esi + 0x18]
call fcn.1005f490
add esp, 0x14
ud2