Function at 0x422320
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4723d1
mov eax, dword fs:[0]
push eax
sub esp, 0x850
mov eax, dword [0x49b7f0]
xor eax, esp
mov dword [esp + 0x848], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b7f0]
xor eax, esp
push eax
lea eax, [esp + 0x864]
mov dword fs:[0], eax
mov eax, dword [esp + 0x874]
push 0
lea esi, [eax + 0x310]
push 0x47f880
mov dword [esp + 0x20], esi
call fcn.00401720
call fcn.0040cc60
mov ebp, eax
lea eax, [esp + 0x654]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x4223c5
push str.Error_in_CWebInstallerDlg::cacheTheInstaller:_cannot_cache_WebInstaller
push 0
push 0xa68
push str.CWebInstallerDlg::cacheTheInstaller
call fcn.004306a0
add esp, 0x10
push 0x26
push str.Could_not_fetch_folder_path_of_appdata
call fcn.00401720
xor al, al
jmp 0x422751
push 0x104
lea ecx, [esp + 0x450]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x422495
push str.Error_in_CWebInstallerDlg::cacheTheInstaller:_cannot_cache_WebInstaller
push eax
push 0xa6f
push str.CWebInstallerDlg::cacheTheInstaller
call fcn.004306a0
add esp, 0x10
call fcn.00442376
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x422414
push 0x80004005
call fcn.00402710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x86c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x18]
push str.Could_not_fetch_ModuleFileName__SysError:__d
push ecx
call fcn.0040a810
mov edi, dword [esp + 0x20]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422451
sub eax, edx
sar eax, 1
push eax
push edi
call fcn.00401720
lea eax, [edi - 0x10]
mov dword [esp + 0x86c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42248e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x422751
mov edi, dword [0x4891a8]
mov ebx, dword [0x4891ac]
mov si, word [0x4891b0]
push 0x1fe
lea ecx, [esp + 0x252]
push 0
push ecx
mov dword [esp + 0x250], edi
mov dword [esp + 0x254], ebx
mov word [esp + 0x258], si
call fcn.004557d0
add esp, 0xc
push 0x1fe
lea edx, [esp + 0x4a]
push 0
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], si
call fcn.004557d0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
add esp, 0xc
lea eax, [esp + 0x44c]
push eax
lea ecx, [esp + 0x248]
push ecx
call edi
lea edx, [esp + 0x654]
push edx
lea eax, [esp + 0x40]
push eax
call edi
push 0x4838c4
lea ecx, [esp + 0x40]
push ecx
call edi
add ebp, 0xac0
push ebp
lea edx, [esp + 0x40]
push edx
call edi
push 0x4838c4
lea eax, [esp + 0x40]
push eax
call edi
push 0x4859a4
lea ecx, [esp + 0x40]
push ecx
call edi
push 0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
mov ebx, 1
jne 0x4226fa
push str.Error_in_CWebInstallerDlg::cacheTheInstaller:_cannot_cache_WebInstaller
push eax
push 0xa87
push str.CWebInstallerDlg::cacheTheInstaller
call fcn.004306a0
add esp, 0x10
call fcn.00442376
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4225a3
push 0x80004005
call fcn.00402710
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x86c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24c]
push edx
lea eax, [esp + 0x20]
push str.CopyFileW_failed_from__s_to__s_with_SysError:__d
push eax
call fcn.0040a810
mov ebp, dword [esp + 0x28]
mov eax, ebp
add esp, 0x14
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4225f0
mov esi, dword [esp + 0x18]
sub eax, edx
sar eax, 1
push eax
push ebp
call fcn.00401720
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x244]
lea edx, [esp + 0x3c]
push eax
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
mov word [esp + 0x30], 0x694
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov edi, eax
test edi, edi
je 0x4226d3
lea ecx, [esp + 0x18]
call fcn.0040a8e0
push edi
lea ecx, [esp + 0x1c]
push str.__SHFileOperation_Failure:_Error__u
push ecx
mov byte [esp + 0x878], 2
call fcn.0040a810
add esp, 0xc
push esi
mov esi, dword [esp + 0x1c]
mov edx, esi
call fcn.004129e0
lea eax, [esi - 0x10]
mov byte [esp + 0x86c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4226b3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x86c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x422482
lea eax, [ebp - 0x10]
mov dword [esp + 0x86c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4226fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.CWebInstallerDlg::cacheTheInstaller:_caching_WebInstaller:
push 0
push 0xa9d
push str.CWebInstallerDlg::cacheTheInstaller
call fcn.004306a0
lea ecx, [esp + 0x254]
push ecx
push str.from__s
push 0
push 0xa9e
push str.CWebInstallerDlg::cacheTheInstaller
call fcn.004306a0
add esp, 0x24
lea edx, [esp + 0x3c]
push edx
push str.to__s
push 0
push 0xa9f
push str.CWebInstallerDlg::cacheTheInstaller
call fcn.004306a0
add esp, 0x14
mov al, bl
mov ecx, dword [esp + 0x864]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x848]
xor ecx, esp
call fcn.004511c3
add esp, 0x85c
ret 4