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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9ff0
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.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x492917
push 0x80004005
call fcn.0041ce60
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 0x492c4c
movzx eax, word [esi + 0xa]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, dword [ebp + 8]
jne 0x49292c
cmp dword [esi + 0xc], 0
je 0x4929eb
mov eax, dword [0x511ea4]
cmp eax, 0xffffffff
jne 0x4929a3
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 0x492997
push 0x511ea4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x492997
mov eax, dword [0x511ea4]
mov ecx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x4929a9
mov dword [0x511ea4], 0
jmp 0x4929eb
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4929eb
cmp dword [0x515be4], 0
jne 0x4929e0
push str.Kernel32.dll
call ecx
test eax, eax
je 0x4929ce
push str.Wow64EnableWow64FsRedirection
push eax
call ebx
mov dword [0x515be4], eax
cmp dword [0x515be4], 0
jne 0x4929e0
mov dword [ebp - 0x18], 1
jmp 0x4929eb
push 0
call dword [0x515be4]
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.0041c6e0
add eax, 0x10
mov dword [edi], eax
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00493920
test eax, eax
jne 0x492a7d
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.00422020
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.0041c740
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 0x492a5f
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 0x492a7d
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 0x492bd6
sub eax, 1
je 0x492ba1
sub eax, 1
jne 0x492bfa
call fcn.0041bef0
test eax, eax
je 0x49290d
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.0041c6e0
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
call fcn.00493920
test eax, eax
jne 0x492b50
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.00422020
add esp, 4
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
call fcn.0041c740
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 0x492b32
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 0x492b50
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 0x492b64
mov edx, ebx
mov ecx, edi
call fcn.00487dd0
jmp 0x492b6e
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push eax
push str.CUninstallProcessor::HandleFile_copy:_d.
push 0x515408
call fcn.0048c0f0
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 0x492bfd
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x492bfa
cmp dword [esi + 0x10], 0
je 0x492bb0
mov ecx, edi
call fcn.00488900
jmp 0x492bfa
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 0x492bfa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x492bfa
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x492bfa
cmp dword [esi + 0x10], 0
mov edx, 1
mov ecx, edi
je 0x492bf5
call fcn.00489300
jmp 0x492bfa
call fcn.00488ab0
or ecx, 0xffffffff
cmp dword [ebp - 0x18], 0
je 0x492c44
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x515be4], eax
jne 0x492c39
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492c30
push str.Wow64EnableWow64FsRedirection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x515be4], eax
cmp dword [0x515be4], 0
je 0x492c41
push 1
call dword [0x515be4]
or ecx, 0xffffffff
mov ebx, dword [ebp - 0x10]
jmp 0x49292f
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x492c68
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