Function at 0x65148800
Capabilities:
Create directory
Get common file path

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 0xc]
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x24], eax
test byte [0x65157028], 8
jne 0x651489e8
test ebx, ebx
je 0x65148849
cmp word [ebx], 0
jne 0x65148ab8
mov eax, edi
call sym._validate_envW
xor edx, edx
mov esi, eax
test eax, eax
je 0x651489d5
mov ecx, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x2c], edx
mov dword [esp + 4], 0
mov dword [ebp - 0x28], ecx
mov dword [esp], 0
call ecx
mov edi, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 8
mov ebx, eax
mov dword [esp], str._spool
call edi
mov dword [esp], str.drivers_
add ebx, eax
call edi
add ebx, eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call edi
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
add ebx, eax
mov eax, dword [ebp - 0x24]
add ebx, ebx
cmp dword [ebp - 0x20], ebx
mov dword [eax], ebx
jb 0x65148bd0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x65148bf0
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
shr eax, 1
mov dword [esp], edi
mov dword [esp + 4], eax
call ecx
mov edx, edi
sub esp, 8
cmp word [edi], 0
je 0x65148cb0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x651488e8
xor eax, eax
mov ecx, 0x5c
jmp 0x65148907
movzx ecx, word [eax + str._spool]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x65148900
mov edi, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov ebx, dword [sym.imp.kernel32.dll_CreateDirectoryW]
mov dword [esp], edi
call ebx
mov edx, edi
sub esp, 8
cmp word [edi], 0
je 0x65148c90
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x65148940
xor eax, eax
mov ecx, 0x5c
jmp 0x6514895f
movzx ecx, word [eax + str.drivers_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x65148958
mov edi, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], edi
call ebx
mov esi, dword [esi + 4]
mov edx, edi
sub esp, 8
cmp word [edi], 0
je 0x65148ca0
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x65148990
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x651489a0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
mov edx, 1
sub esp, 8
test byte [0x65157028], 8
jne 0x65148b60
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
test edi, edi
je 0x65148c30
mov eax, edi
shr eax, 0x10
je 0x65148b40
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x28], str._invalid_
sub esp, 8
test eax, eax
jne 0x65148a29
mov edx, 0xffffffff
mov eax, edi
call sym._wine_dbgstr_wn.part.0
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x65148c40
mov eax, ebx
shr eax, 0x10
je 0x65148c10
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x65148a67
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x18], esi
mov esi, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0xc], str.__s___s___ld___p___ld___p__n
mov dword [esp + 0x1c], edx
mov dword [esp + 8], str.fpGetPrinterDriverDirectory
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514883b
test byte [0x65157028], 1
jne 0x65148ae0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0x10]
xor edx, edx
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, ebx
shr eax, 0x10
je 0x65148c70
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x65148b16
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.server__s_not_supported_n
mov dword [esp + 8], str.fpGetPrinterDriverDirectory
mov dword [esp + 4], 0x65157028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x65148ac1
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x28], eax
jmp 0x65148a29
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
je 0x65148c50
mov edi, dword [ebp - 0x1c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x65148b9a
mov edx, 0xffffffff
mov eax, edi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.___s_n
mov dword [esp + 8], str.fpGetPrinterDriverDirectory
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
mov edx, 1
jmp 0x651489d5
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x6f8
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x65148a67
mov dword [ebp - 0x28], str._null_
jmp 0x65148a29
mov eax, str._null_
jmp 0x65148a67
movzx eax, word [ebp - 0x1c]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x65148b9a
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x65148b16
mov edx, dword [ebp - 0x1c]
jmp 0x65148949
mov edx, dword [ebp - 0x1c]
jmp 0x65148999
mov edx, dword [ebp - 0x1c]
jmp 0x651488f1