Function at 0x490ba0
Capabilities:
Copy file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d8de
mov eax, dword fs:[0]
push eax
sub esp, 0x6bc
mov eax, dword [0x61ce74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x629e90]
mov esi, dword [ebp + 8]
test al, 1
jne 0x490c04
or eax, 1
mov dword [0x629e90], eax
push 0x5c5b14
push str.CopyMyself
mov ecx, 0x629e8c
mov dword [ebp - 4], 0
call fcn.004c71f0
mov dword [ebp - 4], 0xffffffff
cmp byte [0x62a1c4], 0
je 0x490c45
mov cx, word [0x629e8e]
mov eax, 1
mov word [ebp - 0x244], ax
mov eax, dword [0x629e8c]
mov word [ebp - 0x240], cx
movzx ecx, cx
mov word [ebp - 0x242], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004c7f20
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 4], 1
push str.CopyMyself
call fcn.0043f4e0
lea ecx, [ebp - 0x270]
call fcn.00463fb0
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.004721d0
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.004722d0
add esp, 0x10
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 4
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x234]
sub ecx, dword [eax - 0xc]
lea eax, [ebp - 0x23c]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.004262f0
push str.Au_.exe
push dword [ebp - 0x23c]
mov byte [ebp - 4], 5
call fcn.0054b581
add esp, 8
or ebx, 0xffffffff
test eax, eax
jne 0x490cfc
push dword [ebp - 0x234]
push str.227_tCopyMyself_tAlready_is_Au_.exe__path_is_:__ws
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
add esp, 0x14
lea esi, [ebx + 3]
jmp 0x4912b9
xor eax, eax
mov dword [ebp - 0x22c], eax
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x49136d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 6
push 0
push eax
call fcn.00540d70
add esp, 0xc
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x491377
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 7
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x491381
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x224], eax
push esi
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 8
call fcn.00464600
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 9
cmp eax, dword [ebp - 0x24c]
je 0x490dea
mov edi, dword [str.PerfLogFile]
test edi, edi
je 0x49138b
mov ecx, dword [eax]
mov edx, edi
lea ecx, [ecx]
mov si, word [ecx]
cmp si, word [edx]
jne 0x490dd6
test si, si
je 0x490dd2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x490dd6
add ecx, 4
add edx, 4
test si, si
jne 0x490db0
xor ecx, ecx
jmp 0x490ddb
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x490dfb
add eax, 0x14
cmp eax, dword [ebp - 0x24c]
jne 0x490da1
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x49138b
jmp 0x490e15
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00425f70
add esp, 4
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x490e56
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, 0x5b0144
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x490e44
movzx eax, ax
push eax
call fcn.00426130
jmp 0x490e50
push 0
push 0x5b0144
call fcn.004263f0
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0xb
je 0x490ee0
push str._selfcopy.kpl
push str..kpl
lea ecx, [ebp - 0x21c]
call fcn.0045b810
mov esi, dword [ebp - 0x250]
mov edi, dword [str.PerfLogFile]
cmp esi, dword [ebp - 0x24c]
je 0x490ee0
lea ecx, [ecx]
test edi, edi
je 0x49136d
push edi
push dword [esi]
call fcn.0054b581
add esp, 8
test eax, eax
je 0x490eb4
add esi, 0x14
cmp esi, dword [ebp - 0x24c]
jne 0x490e90
jmp 0x490ee0
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x490ec2
xor edx, edx
jmp 0x490ed6
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x490ec7
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [esi + 4]
call fcn.004263f0
lea eax, [ebp - 0x6c8]
push eax
call fcn.004724d0
add esp, 4
lea edi, [ebp - 0x49c]
mov esi, eax
mov ecx, 0x8b
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x250]
call fcn.004921a0
push str.__from_
push eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0xc
push eax
call fcn.00425c00
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00425c00
push 0x5b3b0c
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xe
push eax
call fcn.00425c00
add esp, 0x24
mov edx, dword [ebp - 0x254]
mov eax, ebx
mov byte [ebp - 4], 0x10
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490f78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov eax, ebx
mov byte [ebp - 4], 0x11
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490f99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x25c]
mov eax, ebx
mov byte [ebp - 4], 0x12
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x490fba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x491006
push eax
push str.254_tCopyMyself_tError_get_temporary_folder__continue_to_run_current_file__GetLastError_Code_is_:__d
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x629b08
call fcn.004638c0
mov esi, dword [ebp - 0x224]
add esp, 0x14
mov edi, dword [ebp - 0x220]
jmp 0x49120f
lea eax, [ebp - 0x218]
push eax
push str.259_tCopyMyself_tSuccess_get_temporary_folder__path_is__ws
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x491040
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004263f0
push 4
push str.wps_
lea ecx, [ebp - 0x220]
call fcn.00425dc0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x230]
push str._x_
push eax
call fcn.004289d0
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00425dc0
mov edi, dword [ebp - 0x220]
push edi
call fcn.004703a0
add esp, 4
test eax, eax
jne 0x4910df
push eax
push str.272_tCopyMyself_tError_creating_temporary_folder__continue_to_run_current_file__retCode_is_:__d
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x629b08
call fcn.004638c0
mov esi, dword [ebp - 0x224]
add esp, 0x14
jmp 0x49120f
push edi
push str.277_tCopyMyself_tSuccess_creating_temporary_folder__path_is__ws
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
push str.Au_.exe
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00425c00
add esp, 0x20
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x13
call fcn.00427100
mov edx, dword [ebp - 0x260]
mov eax, ebx
mov byte [ebp - 4], 0x12
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491145
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push 0
push esi
push dword [ebp - 0x228]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x491188
push eax
push str.286_tCopyMyself_tCopyFile_failed__GetLastError_Code_is_:__d
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x629b08
call fcn.004638c0
add esp, 0x14
jmp 0x49120c
push esi
push str.291_tCopyMyself_tCopyFile_success__new_file_name_is_:__ws
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
add esp, 0x14
lea ecx, [ebp - 0x224]
push 0x1f01ff
push dword [esi - 0xc]
call fcn.00467350
push eax
call fcn.00470f70
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, dword [ebp - 0x224]
push 0
push 1
push 0
push 1
push 0
push dword [ebp - 0x238]
push esi
call fcn.00474e60
push 1
push str.299_tCopyMyself_tSuccess_CopyFile_and_Run_app__this_process_quit__retCode_is_:__d
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x629b08
mov dword [ebp - 0x22c], 1
call fcn.004638c0
add esp, 0x30
or ebx, 0xffffffff
mov edx, dword [ebp - 0x238]
mov eax, ebx
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491230
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, ebx
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491251
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x250]
call fcn.00464e00
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x491277
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x230]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x491298
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4912b3
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x23c]
mov eax, ebx
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4912da
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x234]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4912fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
mov byte [ebp - 4], 2
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x49131a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x270]
call fcn.00464070
cmp byte [0x62a1c4], 0
mov dword [ebp - 4], 0x14
je 0x49134f
push dword [ebp - 0x240]
push dword [ebp - 0x242]
push dword [ebp - 0x244]
call fcn.004c7f60
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
int3