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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a6e11
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x639354]
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 fs:[0x2c]
mov ecx, dword [0x643da0]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x642028]
cmp eax, dword [ecx + 4]
jg 0x4a2efd
xor eax, eax
mov dword [ebp - 0x234], eax
mov word [ebp - 0x230], ax
cmp byte [0x6421fc], al
je 0x4a27d0
mov cx, word [0x642026]
mov eax, 1
mov word [ebp - 0x234], ax
mov eax, dword [0x642024]
mov word [ebp - 0x230], cx
movzx ecx, cx
mov word [ebp - 0x232], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004d4f70
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 4], 1
push str.CopyMyself
call fcn.004444c0
lea ecx, [ebp - 0x278]
call fcn.0046be70
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0047c010
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.0047c110
add esp, 0x10
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 4
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x240]
sub ecx, dword [eax - 0xc]
lea eax, [ebp - 0x244]
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.00429f50
push str.Au_.exe
push dword [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.0056b422
add esp, 8
or ebx, 0xffffffff
test eax, eax
jne 0x4a2887
push dword [ebp - 0x240]
push str.269_tCopyMyself_tAlready_is_Au_.exe__path_is_:__ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
lea esi, [ebx + 3]
jmp 0x4a2e55
xor eax, eax
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 6
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4a2f4b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560a80
add esp, 0xc
mov byte [ebp - 4], 8
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4a2f55
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 0xa
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4a2f5f
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], 0xb
call fcn.0046ca40
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 0xc
cmp eax, dword [ebp - 0x24c]
je 0x4a297e
mov edi, dword [str.PerfLogFile]
mov byte [ebp - 4], 0xd
test edi, edi
je 0x4a2f69
mov ecx, dword [eax]
mov edx, edi
mov si, word [ecx]
cmp si, word [edx]
jne 0x4a2966
test si, si
je 0x4a2962
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4a2966
add ecx, 4
add edx, 4
test si, si
jne 0x4a2940
xor ecx, ecx
jmp 0x4a296b
sbb ecx, ecx
or ecx, 1
mov byte [ebp - 4], 0xc
test ecx, ecx
je 0x4a298f
add eax, 0x14
cmp eax, dword [ebp - 0x24c]
jne 0x4a2930
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x4a2f69
jmp 0x4a29a9
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00429b80
add esp, 4
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x4a29ea
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, 0x5b8734
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x4a29d8
movzx eax, ax
push eax
call fcn.00429d90
jmp 0x4a29e4
push 0
push 0x5b8734
call fcn.0042a060
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0xf
je 0x4a2a79
push str._selfcopy.kpl
push str..kpl
lea ecx, [ebp - 0x21c]
call fcn.00463440
mov esi, dword [ebp - 0x250]
mov edi, dword [str.PerfLogFile]
cmp esi, dword [ebp - 0x24c]
je 0x4a2a79
test edi, edi
je 0x4a2f4b
push edi
push dword [esi]
call fcn.0056b422
add esp, 8
test eax, eax
je 0x4a2a45
add esi, 0x14
cmp esi, dword [ebp - 0x24c]
jne 0x4a2a21
jmp 0x4a2a79
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x4a2a53
xor edx, edx
jmp 0x4a2a6f
mov edx, eax
lea edi, [edx + 2]
jmp 0x4a2a60
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x4a2a60
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [esi + 4]
call fcn.0042a060
lea eax, [ebp - 0x6d0]
push eax
call fcn.0047c310
add esp, 4
lea edi, [ebp - 0x4a4]
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.004a4060
push str.__from_
push eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0x10
push eax
call fcn.00429810
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0x11
push ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00429810
push 0x5bb918
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0x12
push eax
call fcn.00429810
add esp, 0x24
mov edx, dword [ebp - 0x254]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2b0d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x258]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2b2a
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], 0x16
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2b4b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004a3730
test al, al
je 0x4a2b66
push 0xe
push str.__ispdfalone1
lea ecx, [ebp - 0x238]
call fcn.004299d0
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 0x4a2bb2
push eax
push str.301_tCopyMyself_tError_get_temporary_folder__continue_to_run_current_file__GetLastError_Code_is_:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
mov esi, dword [ebp - 0x224]
add esp, 0x14
mov edi, dword [ebp - 0x220]
jmp 0x4a2dbf
lea eax, [ebp - 0x218]
push eax
push str.306_tCopyMyself_tSuccess_get_temporary_folder__path_is__ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x4a2bf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2bf0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.0042a060
push 4
push str.wps_
lea ecx, [ebp - 0x220]
call fcn.004299d0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x23c]
push 0x5c5910
push eax
call fcn.0042c720
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x220]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.004299d0
mov edi, dword [ebp - 0x220]
push edi
call fcn.00479dd0
add esp, 4
test eax, eax
jne 0x4a2c8f
push eax
push str.319_tCopyMyself_tError_creating_temporary_folder__continue_to_run_current_file__retCode_is_:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
mov esi, dword [ebp - 0x224]
add esp, 0x14
jmp 0x4a2dbf
push edi
push str.324_tCopyMyself_tSuccess_creating_temporary_folder__path_is__ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
push str.Au_.exe
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00429810
add esp, 0x20
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x17
call fcn.004297a0
mov edx, dword [ebp - 0x260]
mov eax, ebx
mov byte [ebp - 4], 0x16
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2cf5
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 0x4a2d38
push eax
push str.333_tCopyMyself_tCopyFile_failed__GetLastError_Code_is_:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
jmp 0x4a2dbc
push esi
push str.338_tCopyMyself_tCopyFile_success__new_file_name_is_:__ws
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
lea ecx, [ebp - 0x224]
push 0x1f01ff
push dword [esi - 0xc]
call fcn.0046f8d0
push eax
call fcn.0047ac00
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.0047fdb0
push 1
push str.346_tCopyMyself_tSuccess_CopyFile_and_Run_app__this_process_quit__retCode_is_:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x641cc8
mov dword [ebp - 0x22c], 1
call fcn.0046b730
add esp, 0x30
or ebx, 0xffffffff
mov edx, dword [ebp - 0x238]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2ddc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2df9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x250]
call fcn.0046d200
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e1b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e4f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x244]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e72
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x240]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e8f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4a2eaa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x278]
call fcn.0046bf50
cmp byte [0x6421fc], 0
mov dword [ebp - 4], 0x18
je 0x4a2edf
push dword [ebp - 0x230]
push dword [ebp - 0x232]
push dword [ebp - 0x234]
call fcn.004d4fb0
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.0055c3a9
mov esp, ebp
pop ebp
ret
push 0x642028
call fcn.0055c868
add esp, 4
cmp dword [0x642028], 0xffffffff
jne 0x4a2781
push 0x5ba110
push str.CopyMyself
mov ecx, 0x642024
mov dword [ebp - 4], 0
call fcn.004d4340
push 0x642028
mov dword [ebp - 4], 0xffffffff
call fcn.0055c81e
add esp, 4
jmp 0x4a2781
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
push 0x80004005
call fcn.00429b60
int3