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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
test byte [0x72a76838], 1
jne 0x72a6a411
test edi, edi
je 0x72a6a2ed
cmp word [edi], 0
jne 0x72a6a470
mov dword [esp], esi
call sym._validate_envW
xor edx, edx
mov esi, eax
test eax, eax
je 0x72a6a405
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x18], edx
call sym._GetSystemDirectoryW_8
sub esp, 8
mov edi, eax
mov dword [esp], str._spool
call sym._lstrlenW_4
sub esp, 4
mov dword [ebp - 0x14], eax
mov dword [esp], str.drivers_
call sym._lstrlenW_4
add eax, dword [ebp - 0x14]
add edi, eax
mov eax, dword [esi + 4]
sub esp, 4
mov dword [esp], eax
call sym._lstrlenW_4
mov edx, dword [ebp - 0x18]
add edi, eax
mov eax, dword [ebp + 0x1c]
sub esp, 4
add edi, edi
cmp dword [ebp + 0x18], edi
mov dword [eax], edi
jb 0x72a6a550
test ebx, ebx
je 0x72a6a571
mov eax, dword [ebp + 0x18]
mov dword [esp], ebx
shr eax, 1
mov dword [esp + 4], eax
call sym._GetSystemDirectoryW_8
sub esp, 8
mov dword [esp + 4], str._spool
mov dword [esp], ebx
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._CreateDirectoryW_8
sub esp, 8
mov dword [esp + 4], str.drivers_
mov dword [esp], ebx
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._CreateDirectoryW_8
mov eax, dword [esi + 4]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._lstrcatW_8
sub esp, 8
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym._CreateDirectoryW_8
mov edx, 1
sub esp, 8
test byte [0x72a76838], 1
jne 0x72a6a4a0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], str.LocalGetPrinterDriverDirectory__S___S___lu___p___lu___p__n
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], 0x310
mov dword [esp + 0xc], str.LocalGetPrinterDriverDirectory
mov dword [esp + 8], 0x72a791bd
mov dword [esp + 4], 0x72a76838
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a6a2df
test byte [0x72a76838], 1
jne 0x72a6a500
mov dword [esp], 0x57
call sym._SetLastError_4
xor edx, edx
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x14], edx
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.___s_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x33c
mov dword [esp + 0xc], str.LocalGetPrinterDriverDirectory
mov dword [esp + 8], 0x72a791bd
mov dword [esp + 4], 0x72a76838
mov dword [esp], 0
call sym._ros_dbg_log
mov edx, dword [ebp - 0x14]
lea esp, [ebp - 0xc]
pop ebx
pop esi
mov eax, edx
pop edi
pop ebp
ret 0x18
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call sym._wine_dbgstr_wn
mov dword [esp + 0x14], str.server__s_not_supported_n
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0x314
mov dword [esp + 0xc], str.LocalGetPrinterDriverDirectory
mov dword [esp + 8], 0x72a791bd
mov dword [esp + 4], 0x72a76838
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x72a6a47d
mov dword [esp], 0x7a
mov dword [ebp - 0x14], edx
call sym._SetLastError_4
mov edx, dword [ebp - 0x14]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret 0x18
mov dword [esp], 0x6f8
mov dword [ebp - 0x14], edx
call sym._SetLastError_4
mov edx, dword [ebp - 0x14]
sub esp, 4
jmp 0x72a6a405