Function at 0x10026ca4
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0x78
push 0x10056370
call fcn.10036378
or dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
mov byte [ebp - 0x19], bl
cmp dword [ebp + 0x10], ebx
jne 0x100270b0
cmp dword [ebp + 0x14], ebx
jne 0x100270b0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x10026cf0
push dword [ebp + 0xc]
call dword [sym.imp.ntdll.dll_RtlIsDosDeviceName_U]
test eax, eax
je 0x10026cf0
push 0xc0000035
jmp 0x1002705c
mov ecx, dword [ebp + 0x18]
mov al, cl
and al, 1
mov byte [ebp + 0x13], al
mov dword [ebp + 0x14], ecx
and dword [ebp + 0x14], 4
je 0x10026d12
test cl, 0x10
je 0x10026d12
push 0xc000000d
jmp 0x1002705c
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
call edi
cmp al, bl
jne 0x10026d31
push 0xc000003a
jmp 0x1002705c
mov dword [ebp - 0x60], 0x18
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], 0x40
lea eax, [ebp - 0x38]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov esi, dword [ebp + 0x18]
and esi, 8
or esi, 0x10080
shr esi, 2
mov eax, esi
or eax, 0x200000
push eax
push 7
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x110080
lea eax, [ebp - 0x20]
push eax
call fcn.1002923c
add esp, 0x18
cmp eax, ebx
jge 0x10026df1
cmp dword [ebp + 0x14], ebx
je 0x10026dc4
cmp eax, 0xc0000043
je 0x10026d9e
cmp eax, 0xc0000034
je 0x10026d9e
cmp eax, 0xc000003a
jne 0x10026dc4
or dword [ebp - 0x20], 0xffffffff
cmp dword [ebp + 0x14], ebx
je 0x10026e47
cmp dword [ebp + 0xc], ebx
jne 0x10026e47
push ebx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
jmp 0x10026e5a
cmp eax, 0xc000000d
jne 0x10026de7
push esi
push 3
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x60]
push eax
push 0x110000
lea eax, [ebp - 0x20]
push eax
call fcn.1002923c
add esp, 0x18
cmp eax, ebx
jge 0x10026da2
push eax
jmp 0x1002705c
push 0x23
push 8
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call fcn.1002955c
add esp, 0x14
cmp eax, ebx
jge 0x10026e1e
cmp eax, 0xc0000002
je 0x10026e1a
cmp eax, 0xc000000d
jne 0x10026deb
cmp eax, ebx
jl 0x10026da2
test dword [ebp - 0x48], 0x400
je 0x10026da2
cmp dword [ebp - 0x44], 0xa0000003
je 0x10026da2
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x20], 0xffffffff
jmp 0x10026dcb
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0xc]
call edi
cmp al, bl
je 0x10026d27
cmp dword [ebp + 0x14], ebx
je 0x10026f57
cmp byte [ebp + 0x13], bl
je 0x10026ee0
cmp word [ebp - 0x30], bx
je 0x10026ee0
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x30]
inc ecx
inc ecx
push ecx
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
jne 0x10026e99
push 0xc0000017
jmp 0x1002705c
push 0x21
pop eax
mov word [esi], ax
movzx eax, word [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
lea eax, [esi + 2]
push eax
call fcn.10036010
add esp, 0xc
mov eax, dword [ebp - 0x30]
add eax, 2
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x2e]
add eax, 2
mov word [ebp - 0x2e], ax
mov eax, dword fs:[0x18]
push dword [ebp - 0x2c]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x2c], esi
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
xor esi, esi
inc esi
cmp eax, esi
jne 0x10026efa
mov eax, 0xc000000d
jmp 0x10026deb
test byte [ebp + 0x18], 2
jne 0x10026ef0
push ebx
push 2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10025d1a
add esp, 0x10
cmp eax, 0xc0000034
jne 0x10026f46
push esi
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10025d1a
add esp, 0x10
cmp eax, 0xc000009a
jne 0x10026f46
push esi
push 2
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.10025d1a
add esp, 0x10
cmp eax, ebx
jl 0x10026deb
mov byte [ebp - 0x19], 1
jmp 0x10027062
movzx eax, word [ebp - 0x30]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x24]
push 8
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, ebx
je 0x10026e8f
movzx eax, word [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
lea eax, [esi + 0xc]
push eax
call fcn.10033df0
mov al, byte [ebp + 0x13]
mov byte [esi], al
mov dword [esi + 4], ebx
movzx eax, word [ebp - 0x30]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x18]
and eax, 0x10
or eax, 0xa0
shr eax, 4
push eax
push dword [ebp - 0x24]
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call fcn.10029600
add esp, 0x20
mov dword [ebp + 0x14], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x28]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp + 0x14], ebx
jge 0x10026f4e
cmp dword [ebp + 0x14], 0xc00000d4
jne 0x10027059
test byte [ebp + 0x18], 2
je 0x10027059
push 4
push 0x28
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
call fcn.1002955c
add esp, 0x14
cmp eax, ebx
jl 0x10026deb
test byte [ebp - 0x68], 0x10
je 0x10027027
push 0xc00000ba
jmp 0x1002705c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x20], 0xffffffff
xor eax, eax
cmp byte [ebp + 0x13], bl
sete al
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10026ad9
mov byte [ebp - 0x19], al
cmp al, bl
je 0x10027062
push dword [ebp + 8]
call fcn.100268d8
jmp 0x10027062
push dword [ebp + 0x14]
call fcn.1002713c
pop ecx
mov dword [ebp - 4], 0xfffffffe
call fcn.10027076
movzx eax, byte [ebp - 0x19]
jmp 0x100270ba
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
call fcn.100363bd
ret 0x14