Function at 0x7a344750
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4fc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
test byte [section..data], 8
jne 0x7a3449e1
test edi, edi
je 0x7a3449d0
test ebx, ebx
je 0x7a3449d0
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x218]
mov dword [esp + 8], edi
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call sym._sprintf
mov esi, dword [ebp + 0x18]
test esi, esi
je 0x7a3447ae
mov eax, dword [ebp + 0x18]
cmp byte [eax], 0
je 0x7a3447ae
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], edi
lea esi, [ebp - 0x4a8]
mov dword [esp + 4], str._s_s
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x420]
mov dword [esp], eax
call sym._sprintf
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._LZOpenFileA_12
sub esp, 0xc
mov dword [ebp - 0x4c4], eax
test eax, eax
js 0x7a3449d0
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x31c]
mov dword [esp + 8], edi
mov dword [esp + 4], str._s_s
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym._sprintf
mov dword [esp], ebx
call sym._GetFileAttributesA_4
sub esp, 4
cmp eax, 0xffffffff
je 0x7a344833
test al, 1
jne 0x7a344db0
mov eax, dword [ebp + 8]
and eax, 1
mov dword [ebp - 0x4c8], eax
je 0x7a34484d
mov eax, dword [ebp + 0x20]
cmp byte [eax], 0
jne 0x7a344c22
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7a3495b5
mov dword [esp], edi
call sym._GetTempFileNameA_16
sub esp, 0x10
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strrchr]
mov dword [esp + 8], 0x1000
mov ecx, eax
mov dword [esp + 4], esi
sub ecx, ebx
cmp eax, 1
mov dword [esp], ebx
sbb eax, eax
not eax
and ecx, eax
mov dword [ebp - 0x4d0], ecx
call sym._OpenFile_12
sub esp, 0xc
cmp eax, 0xffffffff
je 0x7a344d90
mov dword [esp + 4], eax
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp - 0x4c4]
mov dword [esp], eax
call sym._LZCopy_8
mov edx, dword [ebp - 0x4cc]
sub esp, 8
mov esi, eax
mov dword [esp], edx
call sym.__lclose_4
sub esp, 4
test esi, esi
js 0x7a344ad0
mov ecx, dword [ebp - 0x4c8]
test ecx, ecx
je 0x7a344b05
lea eax, [ebp - 0x420]
mov dword [esp], eax
call sym._GetFileAttributesA_4
sub esp, 4
cmp eax, 0xffffffff
je 0x7a344923
lea eax, [ebp - 0x420]
mov dword [esp], eax
call sym._DeleteFileA_4
sub esp, 4
test eax, eax
je 0x7a344d20
test byte [ebp + 8], 2
jne 0x7a344c53
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x7a344c53
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
je 0x7a344c53
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._lstrcmpiA_8
sub esp, 8
test eax, eax
je 0x7a344c53
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x114]
mov dword [esp + 4], str._s_s
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 8], eax
call sym._sprintf
mov dword [esp], esi
call sym._GetFileAttributesA_4
sub esp, 4
cmp eax, 0xffffffff
je 0x7a344c53
mov dword [esp], esi
call sym._DeleteFileA_4
sub esp, 4
test eax, eax
jne 0x7a344c53
call sym._GetLastError_0
cmp eax, 5
je 0x7a344eeb
cmp eax, 0x20
setne al
movzx eax, al
sub eax, 1
and eax, 0x400
or ah, 0x40
mov esi, eax
jmp 0x7a344c55
mov esi, 0x10000
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov dword [ebp - 0x4d0], ecx
call sym._wine_dbgstr_an
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x4cc], eax
mov eax, dword [ebp + 0x18]
mov dword [esp], eax
call sym._wine_dbgstr_an
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
mov dword [ebp - 0x4c8], eax
call sym._wine_dbgstr_an
mov edx, dword [ebp + 0x10]
mov dword [esp + 4], 0xffffffff
mov dword [ebp - 0x4c4], eax
mov dword [esp], edx
call sym._wine_dbgstr_an
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
mov esi, eax
call sym._wine_dbgstr_an
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x4d0]
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], edx
mov edx, dword [ebp - 0x4cc]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebp - 0x4c8]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp - 0x4c4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.__x__s__s__s__s__s__p__d__n
mov dword [esp + 0x10], 0x5ab
mov dword [esp + 0xc], str.VerInstallFileA
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 3
call sym._ros_dbg_log
jmp 0x7a34476f
lea ecx, [esi + 8]
cmp ecx, 7
ja 0x7a344c90
mov eax, 1
shl eax, cl
test al, 0xa3
jne 0x7a344ed0
test al, 0x50
jne 0x7a344d10
test al, 0xc
je 0x7a344c90
mov esi, 0x8000
jmp 0x7a344c72
lea edx, [ebp - 0x4bc]
lea eax, [ebp - 0x420]
call sym.__fetch_versioninfo
mov esi, eax
test eax, eax
je 0x7a3448f4
lea edx, [ebp - 0x4b8]
mov eax, ebx
call sym.__fetch_versioninfo
mov dword [ebp - 0x4cc], eax
test eax, eax
je 0x7a344ce0
mov eax, dword [ebp - 0x4b8]
mov edx, dword [ebp - 0x4bc]
mov dword [ebp - 0x114], 0x28
mov dword [ebp - 0x4ac], 0x28
mov ecx, dword [eax + 8]
cmp dword [edx + 8], ecx
ja 0x7a344e00
je 0x7a344df4
mov ecx, dword [eax + 0x24]
cmp dword [edx + 0x24], ecx
je 0x7a344e10
lea eax, [ebp - 0x4ac]
mov dword [esp + 4], 0x7a3495f4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4b4]
mov dword [esp + 8], eax
mov dword [esp], esi
or dword [ebp - 0x4c8], 0x22
call sym.version.dll_VerQueryValueA
sub esp, 0x10
test eax, eax
jne 0x7a344ea1
call sym._GetProcessHeap_0
mov edi, dword [ebp - 0x4cc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], edi
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
sub esp, 0xc
mov esi, dword [ebp - 0x4d0]
add esi, ebx
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov edi, dword [ebp + 0x24]
cmp dword [edi], eax
jae 0x7a344d60
mov dword [esp], ebx
mov esi, dword [ebp - 0x4c8]
or esi, 0x40000
call sym._DeleteFileA_4
sub esp, 4
jmp 0x7a344c72
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._s_s
mov dword [esp], ebx
call sym._sprintf
mov dword [esp], ebx
call sym._GetFileAttributesA_4
sub esp, 4
cmp eax, 0xffffffff
jne 0x7a3448f4
jmp 0x7a34484d
xor esi, esi
lea eax, [ebp - 0x420]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._MoveFileA_8
sub esp, 8
test eax, eax
je 0x7a344dd0
mov eax, dword [ebp - 0x4c4]
mov dword [esp], eax
call sym._LZClose_4
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x20
test byte [section..data], 1
je 0x7a3448e6
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], str.Unknown_LZCopy_error__d__ignoring._n
mov dword [esp + 0x10], 0x5ef
mov dword [esp + 0xc], str.VerInstallFileA
mov dword [esp + 8], 0x7a3490cd
mov dword [esp + 4], 0x7a348000
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x7a3448e6
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov dword [ebp - 0x4c8], 6
sub esp, 0xc
jmp 0x7a344bed
mov esi, 0x100
jmp 0x7a344c72
call sym._GetLastError_0
mov esi, 0x1200
cmp eax, 5
je 0x7a344d49
cmp eax, 0x20
sete al
movzx eax, al
mov esi, eax
sub esi, 1
and esi, 0xfffffc00
add esi, 0x1400
mov dword [esp], ebx
call sym._DeleteFileA_4
sub esp, 4
jmp 0x7a344c72
lea ebx, [eax + 1]
mov eax, dword [ebp + 0x20]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp + 0x24]
mov esi, dword [ebp - 0x4c8]
mov dword [eax], ebx
or esi, 1
jmp 0x7a344c72
mov eax, dword [ebp - 0x4c4]
mov esi, 0x800
mov dword [esp], eax
call sym._LZClose_4
sub esp, 4
jmp 0x7a3449d5
mov eax, dword [ebp - 0x4c4]
mov esi, 0x40
mov dword [esp], eax
call sym._LZClose_4
sub esp, 4
jmp 0x7a3449d5
call sym._GetLastError_0
cmp eax, 5
je 0x7a344ee0
cmp eax, 0x20
jne 0x7a344de9
or esi, 0x400
or esi, 0x2000
jmp 0x7a344d49
mov ecx, dword [eax + 0xc]
cmp dword [edx + 0xc], ecx
jbe 0x7a344b6d
mov dword [ebp - 0x4c8], 6
jmp 0x7a344b6d
mov eax, dword [eax + 0x28]
cmp dword [edx + 0x28], eax
jne 0x7a344b79
lea eax, [ebp - 0x4ac]
mov dword [esp + 4], 0x7a3495f4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4b4]
mov dword [esp + 8], eax
mov dword [esp], esi
call sym.version.dll_VerQueryValueA
sub esp, 0x10
test eax, eax
jne 0x7a344ea1
lea esi, [esi]
nop
call sym._GetProcessHeap_0
mov ecx, dword [ebp - 0x4cc]
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._HeapFree_12
sub esp, 0xc
call sym._GetProcessHeap_0
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._HeapFree_12
mov edx, dword [ebp - 0x4c8]
sub esp, 0xc
test edx, edx
jne 0x7a344bed
jmp 0x7a3448f4
lea eax, [ebp - 0x114]
mov dword [esp + 4], 0x7a3495f4
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4b0]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x4cc]
mov dword [esp], eax
call sym.version.dll_VerQueryValueA
sub esp, 0x10
jmp 0x7a344e50
mov esi, 0x10000
jmp 0x7a344c72
or esi, 0x200
jmp 0x7a344de9
mov eax, 0x200
jmp 0x7a3449c5