Function at 0x651496a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x651531d8], 8
jne 0x65149868
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0
test ebx, ebx
je 0x651496d3
cmp word [ebx], 0x5c
je 0x65149750
mov eax, esi
xor edi, edi
call sym._validate_envW
mov esi, eax
test eax, eax
je 0x6514973e
mov ecx, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x20], ecx
call ecx
mov edx, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 8
mov ebx, eax
mov dword [ebp - 0x1c], edx
mov dword [esp], str._spoolprtprocs_
call edx
mov edx, dword [ebp - 0x1c]
add ebx, eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x20]
add ebx, eax
mov eax, dword [ebp + 0x1c]
add ebx, ebx
cmp dword [ebp + 0x18], ebx
mov dword [eax], ebx
jae 0x65149790
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 0x651496d3
xor edx, edx
mov eax, ebx
call sym._copy_servername_from_name.part.0
test eax, eax
je 0x651496d3
test byte [0x651531d8], 1
jne 0x651498e8
mov eax, dword fs:[0x18]
xor edi, edi
mov dword [eax + 0x34], 0x6ba
jmp 0x6514973e
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 0x651498d0
mov edx, eax
nop
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x651497b8
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 0x651497c8
mov eax, dword [ebp + 0x14]
mov ebx, dword [esi + 4]
cmp word [eax], 0
je 0x651498e0
mov edx, eax
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x651497f0
xor eax, eax
nop
lea esi, [esi]
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x65149800
mov edi, 1
test byte [0x651531d8], 8
je 0x6514973e
mov eax, dword [ebp + 0x14]
mov edx, 0xffffffff
call sym._wine_dbgstr_wn
mov dword [esp + 0xc], 0x65155e6e
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x651531d8
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], 0x651531d8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x651496bc
mov edx, dword [ebp + 0x14]
jmp 0x651497c1
mov edx, dword [ebp + 0x14]
jmp 0x651497f9
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], 0x651531d8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x65149779