Function at 0x7a344370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x454
test byte [section..data], 8
je 0x7a344449
mov eax, dword [ebp + 0x24]
xor esi, esi
test eax, eax
je 0x7a344397
mov eax, dword [ebp + 0x24]
mov esi, dword [eax]
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
test eax, eax
je 0x7a3443a5
mov eax, dword [ebp + 0x1c]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov edi, eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0x424]
mov dword [esp + 0x34], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.flags___x_filename_s_windir_s_appdir_s_curdirlen_p__u__destdirlen_p__u__n
mov dword [esp + 0x10], 0x51e
mov dword [esp + 0xc], str.VerFindFileW
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 3
call sym._ros_dbg_log
lea edi, [ebp - 0x218]
mov dword [esp + 4], 0x104
mov dword [esp], edi
call sym._GetSystemDirectoryW_8
mov ebx, dword [ebp + 8]
sub esp, 8
and ebx, 1
je 0x7a344590
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x7a3444d0
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, edi
call sym._testFileExistenceW
test eax, eax
jne 0x7a3446f0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x7a344700
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
call sym._testFileExistenceW
test eax, eax
je 0x7a344700
mov esi, dword [ebp + 0x14]
mov dword [ebp + 0x14], edi
nop
mov edx, dword [ebp + 0xc]
mov ecx, 1
mov eax, esi
call sym._testFileExistenceW
test eax, eax
jne 0x7a3444da
or ebx, 2
jmp 0x7a3444da
mov dword [ebp + 0x14], edi
mov esi, 0x7a349620
xor ebx, ebx
mov dword [esp], esi
call sym._lstrlenW_4
mov edi, eax
mov eax, dword [ebp + 0x14]
sub esp, 4
mov dword [esp], eax
call sym._lstrlenW_4
mov edx, dword [ebp + 0x24]
sub esp, 4
test edx, edx
je 0x7a34453c
mov ecx, dword [ebp + 0x20]
test ecx, ecx
je 0x7a34453c
lea edx, [eax + 1]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
cmp eax, edx
jae 0x7a344512
or ebx, 4
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x424], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [esp], eax
call sym._lstrcpynW_12
mov eax, dword [ebp + 0x24]
mov edx, dword [ebp - 0x424]
sub esp, 0xc
mov dword [eax], edx
mov edx, dword [ebp + 0x1c]
test edx, edx
je 0x7a344574
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x7a344574
mov eax, dword [ebp + 0x1c]
add edi, 1
mov eax, dword [eax]
cmp eax, edi
jae 0x7a344559
or ebx, 4
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._lstrcpynW_12
mov eax, dword [ebp + 0x1c]
sub esp, 0xc
mov dword [eax], edi
test byte [section..data], 8
jne 0x7a344604
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x7a344710
mov ecx, dword [ebp + 0xc]
mov esi, 0x7a349620
test ecx, ecx
je 0x7a3444da
lea eax, [ebp - 0x420]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call sym._GetWindowsDirectoryW_8
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
xor ecx, ecx
sub esp, 8
call sym._testFileExistenceW
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x7a3444b0
mov edx, dword [ebp + 0xc]
xor ecx, ecx
lea eax, [ebp - 0x420]
call sym._testFileExistenceW
test eax, eax
je 0x7a344720
lea esi, [ebp - 0x420]
mov ebx, 1
jmp 0x7a3444b0
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], 0xffffffff
mov edi, str.VFF_BUFFTOOSMALL
mov dword [esp], eax
call sym._wine_dbgstr_wn
mov dword [esp + 4], 0xffffffff
mov esi, eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sym._wine_dbgstr_wn
test bl, 4
je 0x7a3446d5
mov ecx, str.VFF_FILEINUSE
test bl, 2
je 0x7a3446c0
mov edx, str.VFF_CURNEDEST
test bl, 1
je 0x7a3446b0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], str.ret___u___s_s_s__curdir_s_destdir_s_n
mov dword [esp + 0x10], 0x562
mov dword [esp + 0xc], str.VerFindFileW
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 3
call sym._ros_dbg_log
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov edx, 0x7a349024
jmp 0x7a34464e
mov ecx, 0x7a349024
mov edx, str.VFF_CURNEDEST
test bl, 1
jne 0x7a34464e
jmp 0x7a3446b0
mov edi, 0x7a349024
mov ecx, str.VFF_FILEINUSE
test bl, 2
jne 0x7a344644
jmp 0x7a3446c0
mov dword [ebp + 0x14], edi
mov esi, edi
xor ebx, ebx
jmp 0x7a3444b0
mov dword [ebp + 0x14], edi
mov esi, 0x7a349620
xor ebx, ebx
jmp 0x7a3444b0
mov dword [ebp + 0x14], 0x7a349620
jmp 0x7a34459b
mov edx, dword [ebp + 0xc]
xor ecx, ecx
mov eax, edi
mov esi, 0x7a349620
call sym._testFileExistenceW
test eax, eax
je 0x7a3444b0
mov esi, edi
mov ebx, 1
jmp 0x7a3444b0