Function at 0x100097e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x30
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x100131d8], 8
jne 0x100099a8
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
test ebx, ebx
je 0x10009813
cmp word [ebx], 0x5c
je 0x10009890
mov eax, esi
xor edi, edi
call sym._validate_envW
mov esi, eax
test eax, eax
je 0x1000987e
mov ecx, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x14], ecx
call ecx
mov edx, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 8
mov ebx, eax
mov dword [ebp - 0x10], edx
mov dword [esp], str._spoolprtprocs_
call edx
mov edx, dword [ebp - 0x10]
add ebx, eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x14]
add ebx, eax
mov eax, dword [ebp + 0x1c]
add ebx, ebx
cmp dword [ebp + 0x18], ebx
mov dword [eax], ebx
jae 0x100098d0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
cmp word [ebx + 2], 0x5c
jne 0x10009813
xor edx, edx
mov eax, ebx
call sym._copy_servername_from_name.part.0
test eax, eax
je 0x10009813
test byte [0x100131d8], 1
jne 0x10009a28
mov eax, dword fs:[0x18]
xor edi, edi
mov dword [eax + 0x34], 0x6ba
jmp 0x1000987e
mov eax, dword [ebp + 0x18]
shr eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
call ecx
mov eax, dword [ebp + 0x14]
sub esp, 8
cmp word [eax], 0
je 0x10009a10
mov edx, eax
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x100098f8
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [eax + str._spoolprtprocs_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10009908
mov eax, dword [ebp + 0x14]
mov ebx, dword [esi + 4]
cmp word [eax], 0
je 0x10009a20
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x10009930
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10009940
mov edi, 1
test byte [0x100131d8], 8
je 0x1000987e
mov eax, dword [ebp + 0x14]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], 0x10015e6e
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret 0x18
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn
mov edx, 0xffffffff
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0xc], str.__s___s___ld___p___ld___p__n
mov dword [esp + 0x1c], ecx
mov dword [esp + 8], str.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x100131d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x100097fc
mov edx, dword [ebp + 0x14]
jmp 0x10009901
mov edx, dword [ebp + 0x14]
jmp 0x10009939
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], str.server__s_not_supported_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x100131d8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x100098b9