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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x20]
push ebx
push ecx
sub esp, 0x48
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 5
mov dword [esp], ebx
call sym.winspool.drv_GetPrinterW
sub esp, 0x14
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0x7a
jne 0x641912c1
mov edx, dword [ebp - 0x20]
mov dword [esp], edx
mov dword [ebp - 0x30], edx
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 0x10], esi
mov esi, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov dword [ebp - 0x2c], eax
call sym.winspool.drv_GetPrinterW
mov ebx, dword [edi + 8]
sub esp, 0x14
test ebx, ebx
je 0x64191058
mov eax, dword [ebp - 0x2c]
mov esi, dword [eax + 4]
mov eax, dword [sym.imp.ucrtbase.dll_wcschr]
mov dword [esp + 4], 0x3a
mov dword [esp], ebx
mov dword [ebp - 0x30], eax
call eax
test eax, eax
je 0x64191160
mov eax, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x641912d8
mov dword [esp + 4], str.FILE:
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
jne 0x64191033
mov ebx, dword [edi + 8]
mov eax, dword [ebp - 0x2c]
test ebx, ebx
jne 0x641912f1
mov dword [esp], eax
mov esi, dword [sym.imp.ucrtbase.dll_free]
call esi
call dword [sym.imp.user32.dll_GetForegroundWindow]
lea ebx, [ebp - 0x1c]
mov dword [esp + 0xc], sym._file_dlg_proc_16
mov dword [esp + 8], eax
mov eax, dword [0x6419a018]
mov dword [esp + 0x10], ebx
xor ebx, ebx
mov dword [esp + 4], 0x64
mov dword [esp], eax
call dword [sym.imp.user32.dll_DialogBoxParamW]
sub esp, 0x14
cmp eax, 1
jne 0x64191041
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov edi, dword [sym.imp.kernel32.dll_GetFullPathNameW]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
mov dword [ebp - 0x20], eax
sub esp, 0x10
test eax, eax
je 0x64191145
add eax, eax
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
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 ebx, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call edi
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call esi
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcslen]
test esi, esi
je 0x641911d3
mov dword [ebp - 0x38], edi
mov edi, esi
lea edx, [eax + eax]
mov esi, eax
cmp word [edi], 0
mov dword [ebp - 0x34], edx
je 0x641911d0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsncmp]
test eax, eax
jne 0x641911af
mov eax, dword [ebp - 0x34]
movzx eax, word [edi + eax]
test ax, ax
je 0x64191033
cmp ax, 0x2c
je 0x64191033
mov dword [esp + 4], 0x2c
mov eax, dword [ebp - 0x30]
mov dword [esp], edi
call eax
test eax, eax
je 0x641911d0
cmp word [eax + 2], 0
lea edi, [eax + 2]
jne 0x64191180
lea esi, [esi]
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov esi, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], eax
call esi
mov eax, dword [edi + 8]
test eax, eax
je 0x64191091
mov dword [esp + 4], str.FILE:
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x64191091
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 [edi + 8]
mov dword [esp], eax
call esi
mov dword [ebp - 0x20], eax
sub esp, 0x10
test eax, eax
je 0x641912c1
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 - 0x2c], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [edi + 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 0x64191041
test al, 0x10
mov edx, dword [ebp - 0x2c]
je 0x64191041
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
lea esp, [ebp - 0x10]
xor ebx, ebx
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov esi, dword [eax + 4]
jmp 0x64191016