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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbb60
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 0x493f47
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 0x49427c
movzx eax, word [esi + 0xa]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, dword [ebp + 8]
jne 0x493f5c
cmp dword [esi + 0xc], 0
je 0x49401b
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x493fd3
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 0x493fc7
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x493fc7
mov eax, dword [0x511ea4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x493fd9
mov dword [0x511ea4], 0
jmp 0x49401b
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49401b
cmp dword [0x515c64], 0
jne 0x494010
push str.Kernel32.dll
call ecx
test eax, eax
je 0x493ffe
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
jne 0x494010
mov dword [ebp - 0x18], 1
jmp 0x49401b
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.00494e70
test eax, eax
jne 0x4940ad
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 0x49408f
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 0x4940ad
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 0x494206
sub eax, 1
je 0x4941d1
sub eax, 1
jne 0x49422a
call fcn.0041bed0
test eax, eax
je 0x493f3d
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.00494e70
test eax, eax
jne 0x494180
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 0x494162
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 0x494180
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 0x494194
mov edx, ebx
mov ecx, edi
call fcn.004898d0
jmp 0x49419e
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.0048d710
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 0x49422d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x49422a
cmp dword [esi + 0x10], 0
je 0x4941e0
mov ecx, edi
call fcn.0048a400
jmp 0x49422a
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 0x49422a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49422a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49422a
cmp dword [esi + 0x10], 0
mov edx, 1
mov ecx, edi
je 0x494225
call fcn.0048adf0
jmp 0x49422a
call fcn.0048a5b0
or ecx, 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x494274
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x515c64], eax
jne 0x494269
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x494260
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515c64], eax
cmp dword [0x515c64], 0
je 0x494271
push 1
call dword [0x515c64]
or ecx, 0xffffffff
mov ebx, dword [ebp - 0x10]
jmp 0x493f5f
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x494298
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