Function at 0x651483f0
Capabilities:
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 esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x1c], eax
test byte [0x65157028], 8
jne 0x65148510
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
test ebx, ebx
je 0x65148442
cmp word [ebx], 0x5c
je 0x651484c8
mov eax, esi
xor edi, edi
call sym._validate_envW
mov ebx, eax
test eax, eax
je 0x651484b1
mov ecx, dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [ebp - 0x2c], ecx
call ecx
mov edx, dword [sym.imp.ucrtbase.dll_wcslen]
sub esp, 8
mov esi, eax
mov dword [ebp - 0x28], edx
mov dword [esp], str._spoolprtprocs_
call edx
mov edx, dword [ebp - 0x28]
add esi, eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call edx
mov ecx, dword [ebp - 0x2c]
add esi, eax
mov eax, dword [ebp - 0x1c]
add esi, esi
cmp dword [ebp - 0x20], esi
mov dword [eax], esi
jae 0x651485e0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7a
lea esp, [ebp - 0x10]
mov eax, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
cmp word [ebx + 2], 0x5c
jne 0x65148442
xor edx, edx
mov eax, ebx
call sym._copy_servername_from_name.part.0
test eax, eax
je 0x65148442
test byte [0x65157028], 1
jne 0x65148700
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x6ba
lea esp, [ebp - 0x10]
xor edi, edi
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
test esi, esi
je 0x65148790
mov eax, esi
shr eax, 0x10
je 0x651486e0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x28], str._invalid_
sub esp, 8
test eax, eax
jne 0x65148551
mov edx, 0xffffffff
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x65148780
mov eax, ebx
shr eax, 0x10
je 0x65148768
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 0x6514858f
mov edx, 0xffffffff
mov eax, ebx
call sym._wine_dbgstr_wn.part.0
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x18], edi
mov edi, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0xc], str.__s___s___ld___p___ld___p__n
mov dword [esp + 0x1c], edx
mov dword [esp + 8], str.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x6514842b
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
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 0x651487f0
add edx, 2
cmp word [edx], 0
jne 0x65148600
xor eax, eax
mov ecx, 0x5c
jmp 0x6514861f
movzx ecx, word [eax + str._spoolprtprocs_]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x65148618
mov edx, dword [ebp - 0x24]
mov ebx, dword [ebx + 4]
cmp word [edx], 0
je 0x651487e0
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x65148640
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebx + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x65148650
mov edi, 1
test byte [0x65157028], 8
je 0x651484b1
mov eax, dword [ebp - 0x24]
shr eax, 0x10
je 0x651487a0
mov edi, dword [ebp - 0x24]
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 0x651486ac
mov edx, 0xffffffff
mov eax, edi
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov edi, 1
mov dword [esp + 0xc], 0x651598de
mov dword [esp + 8], str.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x65157028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x651484b1
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
mov dword [ebp - 0x28], eax
jmp 0x65148551
mov eax, ebx
shr eax, 0x10
je 0x651487c0
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 0x65148736
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.fpGetPrintProcessorDirectory
mov dword [esp + 4], 0x65157028
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_1
jmp 0x651484f1
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x6514858f
mov eax, str._null_
jmp 0x6514858f
mov dword [ebp - 0x28], str._null_
jmp 0x65148551
movzx eax, word [ebp - 0x24]
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x651486ac
movzx ebx, bx
mov dword [esp], str._04x
mov dword [esp + 4], ebx
call sym._wine_dbg_sprintf.constprop.0_1
jmp 0x65148736
mov edx, dword [ebp - 0x24]
jmp 0x65148649
mov edx, dword [ebp - 0x24]
jmp 0x65148609