Function at 0x10017e50
Capabilities:
Access peb ldr_data
Check if file exists
Get file attributes
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14]
push ebx
sub esp, 0x28
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_GetPrinterW
sub esp, 0x14
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x10017f58
mov esi, dword [ebp - 0x14]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov ebx, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.winspool.drv_GetPrinterW
mov eax, dword [ebp + 0xc]
sub esp, 0x14
mov eax, dword [eax + 8]
test eax, eax
je 0x10017f70
mov dword [esp + 4], str.FILE:
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x10018000
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x10017f1b
mov dword [esp + 4], str.FILE:
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x10018038
call dword [sym.imp.user32.dll_GetForegroundWindow]
lea esi, [ebp - 0x10]
mov dword [esp + 0xc], 0x10002ac0
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0x64
mov eax, dword [0x10021024]
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
je 0x10017fb8
lea esi, [esi]
xor edi, edi
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebx + 4]
test eax, eax
je 0x10018026
mov dword [esp + 4], str.FILE:
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x10018026
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
jne 0x10017ed4
mov dword [esp], ebx
mov ebx, dword [sym.imp.ucrtbase.dll_free]
call ebx
jmp 0x10017f1b
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10018108
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call ebx
jmp 0x10017f58
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx + 4]
mov esi, dword [eax + 8]
mov dword [esp + 4], 0x3a
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp], esi
mov dword [ebp - 0x18], eax
call eax
test eax, eax
je 0x10018160
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
jmp 0x10017f58
mov dword [esp + 0xc], 0
mov esi, dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10017f58
add eax, eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov dword [ebp - 0x18], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call esi
sub esp, 0x10
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x10017f5a
test al, 0x10
mov edx, dword [ebp - 0x18]
je 0x10017f5a
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x10017f58
add eax, eax
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x10]
sub esp, 0x10
mov dword [esp], eax
call ebx
jmp 0x10017f5a
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
test edi, edi
je 0x10017eed
lea ecx, [eax + eax]
mov dword [ebp - 0x20], ebx
mov ebx, eax
mov dword [ebp - 0x1c], ecx
jmp 0x100181be
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
jne 0x100181a7
mov eax, dword [ebp - 0x1c]
movzx eax, word [edi + eax]
test ax, ax
je 0x100181cc
cmp ax, 0x2c
je 0x100181cc
mov dword [esp + 4], 0x2c
mov dword [esp], edi
mov eax, dword [ebp - 0x18]
call eax
test eax, eax
je 0x100181c4
lea edi, [eax + 2]
cmp word [edi], 0
jne 0x10018180
mov ebx, dword [ebp - 0x20]
jmp 0x10017eed
mov ebx, dword [ebp - 0x20]
jmp 0x10018026