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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d42c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x62819c]
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 [0x633954]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x631bb8]
cmp eax, dword [ecx + 4]
jg 0x498b5d
xor eax, eax
mov dword [ebp - 0x234], eax
mov word [ebp - 0x230], ax
cmp byte [0x631d90], al
je 0x498410
mov cx, word [0x631bb6]
mov eax, 1
mov word [ebp - 0x234], ax
mov eax, dword [0x631bb4]
mov word [ebp - 0x230], cx
movzx ecx, cx
mov word [ebp - 0x232], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004ca750
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 4], 1
push str.CopyMyself
call fcn.004434e0
lea ecx, [ebp - 0x278]
call fcn.00468050
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00476980
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 3
push 0
push eax
call fcn.00476a80
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.00429770
push str.Au_.exe
push dword [ebp - 0x244]
mov byte [ebp - 4], 5
call fcn.00555852
add esp, 8
or ebx, 0xffffffff
test eax, eax
jne 0x4984c7
push dword [ebp - 0x240]
push str.254_tCopyMyself_tAlready_is_Au_.exe__path_is_:__ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x14
lea esi, [ebx + 3]
jmp 0x498aa9
xor eax, eax
mov dword [ebp - 0x22c], eax
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x498bab
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.0054b380
add esp, 0xc
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x498bb5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 7
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x498bbf
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.00468710
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 9
cmp eax, dword [ebp - 0x24c]
je 0x4985ba
mov edi, dword [str.PerfLogFile]
lea esp, [esp]
test edi, edi
je 0x498bc9
mov ecx, dword [eax]
mov edx, edi
lea esp, [esp]
mov si, word [ecx]
cmp si, word [edx]
jne 0x4985a6
test si, si
je 0x4985a2
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x4985a6
add ecx, 4
add edx, 4
test si, si
jne 0x498580
xor ecx, ecx
jmp 0x4985ab
sbb ecx, ecx
or ecx, 1
test ecx, ecx
je 0x4985cb
add eax, 0x14
cmp eax, dword [ebp - 0x24c]
jne 0x498570
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x498bc9
jmp 0x4985e5
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.004293f0
add esp, 4
add eax, 0x10
mov dword [ebp - 0x21c], eax
jmp 0x498626
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
mov eax, 0x5ac698
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x21c]
test eax, 0xffff0000
jne 0x498614
movzx eax, ax
push eax
call fcn.004295b0
jmp 0x498620
push 0
push 0x5ac698
call fcn.00429870
mov eax, dword [ebp - 0x21c]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 0xb
je 0x4986b0
push str._selfcopy.kpl
push str..kpl
lea ecx, [ebp - 0x21c]
call fcn.0045f8f0
mov esi, dword [ebp - 0x250]
mov edi, dword [str.PerfLogFile]
cmp esi, dword [ebp - 0x24c]
je 0x4986b0
lea ecx, [ecx]
test edi, edi
je 0x498bab
push edi
push dword [esi]
call fcn.00555852
add esp, 8
test eax, eax
je 0x498684
add esi, 0x14
cmp esi, dword [ebp - 0x24c]
jne 0x498660
jmp 0x4986b0
mov eax, dword [ebp - 0x21c]
test eax, eax
jne 0x498692
xor edx, edx
jmp 0x4986a6
mov edx, eax
lea edi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x498697
sub edx, edi
sar edx, 1
push edx
push eax
lea ecx, [esi + 4]
call fcn.00429870
lea eax, [ebp - 0x6d0]
push eax
call fcn.00476c80
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.00499c10
push str.__from_
push eax
lea eax, [ebp - 0x258]
mov byte [ebp - 4], 0xc
push eax
call fcn.00429080
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 0xd
push ecx
push eax
lea eax, [ebp - 0x254]
push eax
call fcn.00429080
push 0x5afe30
push eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xe
push eax
call fcn.00429080
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 0x498748
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 0x498769
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 0x49878a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.004993a0
test al, al
je 0x4987a5
push 0xe
push str.__ispdfalone1
lea ecx, [ebp - 0x238]
call fcn.00429240
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 0x4987f1
push eax
push str.286_tCopyMyself_tError_get_temporary_folder__continue_to_run_current_file__GetLastError_Code_is_:__d
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
mov esi, dword [ebp - 0x224]
add esp, 0x14
mov edi, dword [ebp - 0x220]
jmp 0x4989ff
lea eax, [ebp - 0x218]
push eax
push str.291_tCopyMyself_tSuccess_get_temporary_folder__path_is__ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x14
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498830
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.00429870
push 4
push str.wps_
lea ecx, [ebp - 0x220]
call fcn.00429240
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x23c]
push str._x_
push eax
call fcn.0042bf70
mov eax, dword [ebp - 0x23c]
lea ecx, [ebp - 0x220]
add esp, 0xc
push dword [eax - 0xc]
push eax
call fcn.00429240
mov edi, dword [ebp - 0x220]
push edi
call fcn.00474b10
add esp, 4
test eax, eax
jne 0x4988cf
push eax
push str.304_tCopyMyself_tError_creating_temporary_folder__continue_to_run_current_file__retCode_is_:__d
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
mov esi, dword [ebp - 0x224]
add esp, 0x14
jmp 0x4989ff
push edi
push str.309_tCopyMyself_tSuccess_creating_temporary_folder__path_is__ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
push str.Au_.exe
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.00429080
add esp, 0x20
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0x13
call fcn.0042a6a0
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 0x498935
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 0x498978
push eax
push str.318_tCopyMyself_tCopyFile_failed__GetLastError_Code_is_:__d
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._ERROR_
push 0x631888
call fcn.004677c0
add esp, 0x14
jmp 0x4989fc
push esi
push str.323_tCopyMyself_tCopyFile_success__new_file_name_is_:__ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x14
lea ecx, [ebp - 0x224]
push 0x1f01ff
push dword [esi - 0xc]
call fcn.0046b460
push eax
call fcn.004756f0
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.00479aa0
push 1
push str.331_tCopyMyself_tSuccess_CopyFile_and_Run_app__this_process_quit__retCode_is_:__d
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallMain.cpp
push str._INFO_
push 0x631888
mov dword [ebp - 0x22c], 1
call fcn.004677c0
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 0x498a20
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 0x498a41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x250]
call fcn.00468ef0
mov byte [ebp - 4], 7
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x498a67
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x23c]
mov eax, ebx
mov byte [ebp - 4], 6
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498a88
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 0x498aa3
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
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498aca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x240]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x498aeb
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 0x498b0a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x278]
call fcn.00468130
cmp byte [0x631d90], 0
mov dword [ebp - 4], 0x14
je 0x498b3f
push dword [ebp - 0x230]
push dword [ebp - 0x232]
push dword [ebp - 0x234]
call fcn.004ca790
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x631bb8
call fcn.00546388
add esp, 4
cmp dword [0x631bb8], 0xffffffff
jne 0x4983c1
push 0x5ae038
push str.CopyMyself
mov ecx, 0x631bb4
mov dword [ebp - 4], 0
call fcn.004c9bd0
push 0x631bb8
mov dword [ebp - 4], 0xffffffff
call fcn.0054633e
add esp, 4
jmp 0x4983c1
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3