Function at 0x4939d0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db520
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x511070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
xor eax, eax
mov dword [ebp - 0x18], eax
call fcn.0041bed0
mov ecx, eax
test ecx, ecx
jne 0x493a17
push 0x80004005
call fcn.0041cdf0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0
mov esi, dword [ebx + 0x1c]
or ecx, 0xffffffff
mov esi, dword [esi]
cmp esi, dword [ebx + 0x1c]
je 0x493d4c
movzx eax, word [esi + 0xa]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, dword [ebp + 8]
jne 0x493a2c
cmp dword [esi + 0xc], 0
je 0x493aeb
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x493aa3
push str.IsWow64Process
push str.kernel32
call ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x493a97
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x493a97
mov eax, dword [0x511ea4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x493aa9
mov dword [0x511ea4], 0
jmp 0x493aeb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x493aeb
cmp dword [0x515c64], 0
jne 0x493ae0
push str.Kernel32.dll
call ecx
test eax, eax
je 0x493ace
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
jne 0x493ae0
mov dword [ebp - 0x18], 1
jmp 0x493aeb
push 0
call dword [0x515c64]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
mov edi, esp
lea ebx, [esi + 0x14]
mov dword [ebp - 0x14], edi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0041c670
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00494940
test eax, eax
jne 0x493b7d
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov ecx, edi
call dword [eax]
push ebx
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00421dd0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0041c6d0
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x20]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493b5f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493b7d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
movzx eax, word [esi + 8]
mov edi, dword [ebp - 0x1c]
sub eax, 0
je 0x493cd6
sub eax, 1
je 0x493ca1
sub eax, 1
jne 0x493cfa
call fcn.0041bed0
test eax, eax
je 0x493a0d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push ecx
mov ecx, dword [esi + 0x18]
mov ebx, esp
sub ecx, 0x10
mov dword [ebp - 0x30], ebx
call fcn.0041c670
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.00494940
test eax, eax
jne 0x493c50
mov eax, dword [ebx]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
call dword [eax]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x28]
call fcn.00421dd0
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0041c6d0
mov byte [ebp - 4], 4
or ebx, 0xffffffff
mov edx, dword [ebp - 0x28]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493c32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x493c50
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [esi + 0x10], 0
mov ebx, dword [ebp - 0x14]
je 0x493c64
mov edx, ebx
mov ecx, edi
call fcn.004893b0
jmp 0x493c6e
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
push str.CUninstallProcessor::HandleFile_copy:_d.
push 0x515488
call fcn.0048d1f0
or ecx, 0xffffffff
mov byte [ebp - 4], 0
add esp, 0xc
add ebx, 0xfffffff0
mov eax, ecx
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x493cfd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x493cfa
cmp dword [esi + 0x10], 0
je 0x493cb0
mov ecx, edi
call fcn.00489ee0
jmp 0x493cfa
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
je 0x493cfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x493cfa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x493cfa
cmp dword [esi + 0x10], 0
mov edx, 1
mov ecx, edi
je 0x493cf5
call fcn.0048a8d0
jmp 0x493cfa
call fcn.0048a090
or ecx, 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x493d44
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x515c64], eax
jne 0x493d39
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x493d30
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
je 0x493d41
push 1
call dword [0x515c64]
or ecx, 0xffffffff
mov ebx, dword [ebp - 0x10]
jmp 0x493a2f
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x493d68
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4