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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a1dd1
mov eax, dword fs:[0]
push eax
sub esp, 0x190
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 edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x643da0]
mov edx, dword [eax + edx*4]
mov eax, dword [0x641d80]
cmp eax, dword [edx + 4]
jg 0x46e30f
xor eax, eax
mov dword [ebp - 0x178], eax
mov word [ebp - 0x174], ax
cmp byte [0x6421fc], al
je 0x46dabf
mov cx, word [0x641d7e]
mov eax, 1
mov word [ebp - 0x178], ax
mov eax, dword [0x641d7c]
mov word [ebp - 0x174], cx
movzx ecx, cx
mov word [ebp - 0x176], ax
push ecx
movzx eax, ax
push eax
push 1
call fcn.004d4f70
add esp, 0xc
push 0x10
mov dword [ebp - 4], 1
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
call fcn.0055c4f4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [ebp - 0x168], eax
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.0047c110
add esp, 0xc
push str.kuninstallui
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 3
call fcn.00523040
push 0x5ba110
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 4
call fcn.00523040
push 1
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.00535dc0
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.005273c0
mov esi, eax
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x46e35d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x160], eax
mov byte [ebp - 4], 7
test esi, esi
je 0x46dbb1
test esi, 0xffff0000
jne 0x46db97
movzx eax, si
lea ecx, [ebp - 0x160]
push eax
call fcn.00429d90
jmp 0x46dbc0
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46dba0
sub ecx, edx
sar ecx, 1
jmp 0x46dbb3
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x160]
call fcn.0042a060
mov edx, dword [ebp - 0x148]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x46dc04
mov ecx, dword [ebp - 0x15c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dbfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e367
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 7
mov word [ebp - 0x15c], ax
mov edx, dword [ebp - 0x118]
mov byte [ebp - 4], 0xa
cmp edx, 8
jb 0x46dc65
mov ecx, dword [ebp - 0x12c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dc5b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e367
push edx
push ecx
call fcn.0055c524
add esp, 8
xor eax, eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x118], 7
mov word [ebp - 0x12c], ax
mov edx, dword [ebp - 0x130]
mov byte [ebp - 4], 0xb
cmp edx, 8
jb 0x46dcc6
mov ecx, dword [ebp - 0x144]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dcbc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e367
push edx
push ecx
call fcn.0055c524
add esp, 8
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 8]
mov edi, dword [ebp - 0x160]
xor eax, eax
push edi
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 7
mov word [ebp - 0x144], ax
call ebx
test eax, eax
jne 0x46dd4d
push str.office6kuninstallui
lea eax, [ebp - 0x170]
push esi
push eax
call fcn.00429810
add esp, 0xc
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0xc
call fcn.004297a0
mov edx, dword [ebp - 0x170]
or eax, 0xffffffff
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46dd40
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x160]
push edi
call ebx
test eax, eax
je 0x46dd60
push dword [ebp - 0x16c]
push edi
call fcn.00479bf0
add esp, 8
test eax, eax
jne 0x46dd67
xor ebx, ebx
jmp 0x46e219
push 0x5c0508
lea eax, [ebp - 0x17c]
push esi
push eax
call fcn.00429810
push 0x5c051c
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x184]
push eax
call fcn.00429810
mov esi, dword [eax]
lea eax, [ebp - 0x17c]
push 0x5c051c
push eax
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 0xe
push eax
call fcn.00429810
push esi
push dword [eax]
mov byte [ebp - 4], 0xf
call fcn.00479bf0
mov edx, dword [ebp - 0x180]
add esp, 0x2c
test eax, eax
sete bl
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46dde5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x184]
or eax, 0xffffffff
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46de07
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x46e1f9
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], str.Qt5WinExtrasKso.dll
mov dword [ebp - 0x110], str.Qt5WidgetsKso.dll
mov dword [ebp - 0x10c], str.Qt5SvgKso.dll
mov dword [ebp - 0x108], str.Qt5GuiKso.dll
mov dword [ebp - 0x104], str.Qt5CoreKso.dll
mov dword [ebp - 0x100], str.Qt5XmlKso.dll
mov dword [ebp - 0xfc], str.krt.dll
mov dword [ebp - 0xf8], str.MSVCP140.dll
mov dword [ebp - 0xf4], str.VCRUNTIME140.dll
mov dword [ebp - 0xf0], str.qt.conf
mov dword [ebp - 0xec], str.qtpluginsiconenginesqsvgicon.dll
mov dword [ebp - 0xe8], str.qtpluginsimageformatsqsvg.dll
mov dword [ebp - 0xe4], str.qtpluginsplatformsqdirect2d.dll
mov dword [ebp - 0xe0], str.qtpluginsplatformsqwindows.dll
mov dword [ebp - 0xdc], str.qtpluginsprintsupportwindowsprintersupport.dll
mov dword [ebp - 0xd8], str.qtplugins_stylesqwindowsvistastyle.dll
mov dword [ebp - 0xd4], str.api_ms_win_crt_filesystem_l1_1_0.dll
mov dword [ebp - 0xd0], str.api_ms_win_crt_heap_l1_1_0.dll
mov dword [ebp - 0xcc], str.api_ms_win_crt_locale_l1_1_0.dll
mov dword [ebp - 0xc8], str.api_ms_win_crt_math_l1_1_0.dll
mov dword [ebp - 0xc4], str.api_ms_win_crt_multibyte_l1_1_0.dll
mov dword [ebp - 0xc0], str.api_ms_win_crt_private_l1_1_0.dll
mov dword [ebp - 0xbc], str.api_ms_win_crt_process_l1_1_0.dll
mov dword [ebp - 0xb8], str.api_ms_win_crt_runtime_l1_1_0.dll
mov dword [ebp - 0xb4], str.api_ms_win_crt_stdio_l1_1_0.dll
mov dword [ebp - 0xb0], str.api_ms_win_crt_string_l1_1_0.dll
mov dword [ebp - 0xac], str.api_ms_win_crt_time_l1_1_0.dll
mov dword [ebp - 0xa8], str.api_ms_win_crt_utility_l1_1_0.dll
mov dword [ebp - 0xa4], str.concrt140.dll
mov dword [ebp - 0xa0], str.dbghelp.dll
mov dword [ebp - 0x9c], str.msvcp140_1.dll
mov dword [ebp - 0x98], str.msvcp140_2.dll
mov dword [ebp - 0x94], str.msvcp140_codecvt_ids.dll
mov dword [ebp - 0x90], str.ucrtbase.dll
mov dword [ebp - 0x8c], str.vccorlib140.dll
mov dword [ebp - 0x88], str.api_ms_win_core_console_l1_1_0.dll
mov dword [ebp - 0x84], str.api_ms_win_core_console_l1_2_0.dll
mov dword [ebp - 0x80], str.api_ms_win_core_datetime_l1_1_0.dll
mov dword [ebp - 0x7c], str.api_ms_win_core_debug_l1_1_0.dll
mov dword [ebp - 0x78], str.api_ms_win_core_errorhandling_l1_1_0.dll
mov dword [ebp - 0x74], str.api_ms_win_core_file_l1_1_0.dll
mov dword [ebp - 0x70], str.api_ms_win_core_file_l1_2_0.dll
mov dword [ebp - 0x6c], str.api_ms_win_core_file_l2_1_0.dll
mov dword [ebp - 0x68], str.api_ms_win_core_handle_l1_1_0.dll
mov dword [ebp - 0x64], str.api_ms_win_core_heap_l1_1_0.dll
mov dword [ebp - 0x60], str.api_ms_win_core_interlocked_l1_1_0.dll
mov dword [ebp - 0x5c], str.api_ms_win_core_libraryloader_l1_1_0.dll
mov dword [ebp - 0x58], str.api_ms_win_core_localization_l1_2_0.dll
mov dword [ebp - 0x54], str.api_ms_win_core_memory_l1_1_0.dll
mov dword [ebp - 0x50], str.api_ms_win_core_namedpipe_l1_1_0.dll
mov dword [ebp - 0x4c], str.api_ms_win_core_processenvironment_l1_1_0.dll
mov dword [ebp - 0x48], str.api_ms_win_core_processthreads_l1_1_0.dll
mov dword [ebp - 0x44], str.api_ms_win_core_processthreads_l1_1_1.dll
mov dword [ebp - 0x40], str.api_ms_win_core_profile_l1_1_0.dll
mov dword [ebp - 0x3c], str.api_ms_win_core_rtlsupport_l1_1_0.dll
mov dword [ebp - 0x38], str.api_ms_win_core_string_l1_1_0.dll
mov dword [ebp - 0x34], str.api_ms_win_core_synch_l1_1_0.dll
mov dword [ebp - 0x30], str.api_ms_win_core_synch_l1_2_0.dll
mov dword [ebp - 0x2c], str.api_ms_win_core_sysinfo_l1_1_0.dll
mov dword [ebp - 0x28], str.api_ms_win_core_timezone_l1_1_0.dll
mov dword [ebp - 0x24], str.api_ms_win_core_util_l1_1_0.dll
mov dword [ebp - 0x20], str.API_MS_Win_core_xstate_l2_1_0.dll
mov dword [ebp - 0x1c], str.api_ms_win_crt_conio_l1_1_0.dll
mov dword [ebp - 0x18], str.api_ms_win_crt_convert_l1_1_0.dll
mov dword [ebp - 0x14], str.api_ms_win_crt_environment_l1_1_0.dll
mov dword [ebp - 0x170], eax
mov esi, dword [eax]
lea eax, [ebp - 0x16c]
push esi
push eax
lea eax, [ebp - 0x190]
push eax
call fcn.00429810
mov dword [ebp - 0x180], eax
push esi
lea eax, [ebp - 0x17c]
mov byte [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x18c]
push eax
call fcn.00429810
add esp, 0x18
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x164], 0xfffffff
mov ecx, dword [ebp - 0x168]
mov byte [ebp - 4], 0x11
mov dword [ebp - 0x188], ecx
je 0x46e305
lea eax, [ebp - 0x168]
mov dword [ebp - 0x198], eax
push 0x10
mov byte [ebp - 4], 0x12
mov dword [ebp - 0x194], 0
call fcn.0055c4f4
mov ecx, dword [ebp - 0x184]
mov ebx, eax
mov dword [ebp - 0x194], ebx
mov ecx, dword [ecx]
lea esi, [ebx + 8]
sub ecx, 0x10
mov dword [ebp - 0x19c], esi
push ecx
call fcn.00429b80
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x180]
mov byte [ebp - 4], 0x13
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00429b80
mov ecx, dword [ebp - 0x188]
add eax, 0x10
mov dword [esi + 4], eax
add esp, 0xc
inc dword [ebp - 0x164]
mov dword [ebp - 0x194], 0
mov eax, dword [ecx + 4]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [ecx + 4], ebx
mov dword [eax], ebx
or eax, 0xffffffff
mov edx, dword [ebp - 0x18c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e155
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x190]
or eax, 0xffffffff
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e177
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x170], eax
cmp eax, ecx
jne 0x46e051
mov eax, dword [ebp - 0x168]
mov esi, dword [eax]
cmp esi, eax
je 0x46e1c9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push dword [esi + 0xc]
call ebx
test eax, eax
jne 0x46e1bd
push eax
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x46e1d0
mov eax, dword [esi]
mov esi, eax
cmp eax, dword [ebp - 0x168]
jne 0x46e1a3
mov ebx, 1
jmp 0x46e1fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0xc]
push dword [esi + 8]
push str.598_tKApp::CopyWebUI_tCopy__s_to__s_faild_with:__d
push str.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonappKUninstallKApp.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x1c
xor ebx, ebx
mov edx, dword [ebp - 0x17c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e219
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x46e231
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x16c]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e24f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x168]
mov eax, dword [ecx + 4]
mov dword [eax], 0
mov esi, dword [ecx]
test esi, esi
je 0x46e2ad
mov edx, dword [esi + 0xc]
or eax, 0xffffffff
mov edi, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e281
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esi + 8]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46e29c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x10
push esi
call fcn.0055c524
add esp, 8
mov esi, edi
test edi, edi
jne 0x46e264
push 0x10
push dword [ebp - 0x168]
call fcn.0055c524
add esp, 8
cmp byte [0x6421fc], 0
mov dword [ebp - 4], 0x14
je 0x46e2e7
push dword [ebp - 0x174]
push dword [ebp - 0x176]
push dword [ebp - 0x178]
call fcn.004d4fb0
add esp, 0xc
mov eax, ebx
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 str.list_too_long
call fcn.0055db0b
push 0x641d80
call fcn.0055c868
add esp, 4
cmp dword [0x641d80], 0xffffffff
jne 0x46da70
push 0x5ba110
push str.KApp::CopyWebUI
mov ecx, 0x641d7c
mov dword [ebp - 4], 0
call fcn.004d4340
push 0x641d80
mov dword [ebp - 4], 0xffffffff
call fcn.0055c81e
add esp, 4
jmp 0x46da70
push 0x80004005
call fcn.00429b60
call fcn.0056af64
int3