Function at 0x4a4280
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7f30
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x53d9f8]
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 [ebp + 8]
lea ecx, [edi + 0x69c]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
mov eax, dword [ecx]
mov dword [ebp - 0x98], 0
xchg dword [ecx], eax
test eax, eax
je 0x4a42de
mov eax, 2
jmp 0x4a485b
mov eax, 1
xchg dword [ecx], eax
push 0
push 0x50fb20
push str.HKCUSoftwareKingsoftOffice6.0CommonupdateinfoDownloadMethod
call fcn.0044bf70
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4a4303
mov eax, dword [esi]
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
push eax
lea eax, [edi + 0x424]
push 0x104
push eax
call ebx
lea eax, [esi + 0x30]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4a4326
mov eax, dword [eax]
push eax
lea ecx, [edi + 0x21c]
push 0x104
push ecx
call ebx
mov eax, dword [esi + 0x5c]
lea ebx, [esi + 0x4c]
mov ecx, 0x20
add esp, 0xc
cmp eax, ecx
cmova eax, ecx
add eax, eax
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0xa0], eax
jb 0x4a4358
mov ebx, dword [ebx]
lea ecx, [edi + 0x62c]
test eax, eax
je 0x4a43c4
test ecx, ecx
jne 0x4a4374
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x4a43be
test ebx, ebx
je 0x4a438a
cmp eax, 0x42
ja 0x4a438a
push eax
push ebx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4a43c4
push 0x42
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x4a43a9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x4a43be
cmp dword [ebp - 0xa0], 0x42
jbe 0x4a43c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x22
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x6c]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x684], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x688], eax
mov eax, dword [esi + 0x68]
mov dword [edi + 0x694], eax
mov eax, dword [esi + 0x64]
push 0x103
push dword [ebp - 0x90]
mov dword [edi + 0x690], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x6a4], eax
lea eax, [edi + 0x14]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push 0x2d
lea eax, [ebp - 0x70]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea ebx, [edi + 0x21c]
mov dword [ebp - 0x30], 0
mov ecx, ebx
mov dword [ebp - 0x2c], 7
add esp, 0x1c
xor eax, eax
mov word [ebp - 0x40], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4440
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x40]
call fcn.004033b0
push 4
push str..dt_
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.00403230
mov ecx, ebx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
jmp 0x4a4490
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a4490
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.004033b0
push 5
push str..cfg_
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00403230
push ebx
call fcn.004168a0
add esp, 4
test al, al
je 0x4a4507
lea eax, [ebp - 0x88]
push ebx
push eax
call fcn.00478110
add esp, 8
mov dword [ebp - 0x98], 1
cmp dword [eax + 0x14], 8
jb 0x4a44eb
mov eax, dword [eax]
lea ecx, [edi + 0x62c]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
mov byte [ebp - 0x89], 1
test eax, eax
je 0x4a450e
mov byte [ebp - 0x89], 0
test byte [ebp - 0x98], 1
je 0x4a4522
lea ecx, [ebp - 0x88]
call fcn.00402d80
cmp byte [ebp - 0x89], 0
je 0x4a4559
xor eax, eax
lea ecx, [edi + 0x69c]
xchg dword [ecx], eax
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4a454f
push 1
push 2
call esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4a454f
push 0
push 0xb
call esi
mov esi, 0xb
jmp 0x4a47d3
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.004168a0
add esp, 4
test al, al
je 0x4a4657
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004168a0
add esp, 4
test al, al
je 0x4a4657
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x70]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
mov ecx, edi
call fcn.004a3cd0
test eax, eax
je 0x4a4657
mov eax, dword [ebp - 0x50]
fild dword [ebp - 0x50]
test eax, eax
jns 0x4a45c0
fadd qword [0x4fac70]
fstp qword [ebp - 0x94]
fld qword [ebp - 0x94]
fmul qword [0x4fac58]
mov eax, dword [ebp - 0x4c]
fild dword [ebp - 0x4c]
test eax, eax
jns 0x4a45e2
fadd qword [0x4fac70]
fstp qword [ebp - 0x94]
fdiv qword [ebp - 0x94]
call fcn.004bf310
mov dword [edi + 0x698], eax
mov eax, dword [ebp - 0x50]
push str.Start_resume.
mov dword [edi + 0x674], eax
mov eax, dword [ebp - 0x4c]
push str.kupdate::KHttpDownload::StartDownload
mov dword [edi + 0x670], eax
mov eax, dword [ebp - 0x48]
push 0x2a3
mov dword [edi + 0x68c], eax
movzx eax, byte [ebp - 0x44]
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 7
mov dword [edi + 0x678], eax
call fcn.00412750
add esp, 0x14
mov dword [edi + 0x678], 1
inc dword [edi + 0x68c]
push 0
push 0x80
push 3
jmp 0x4a4685
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call esi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
push 0
push 0x80
push 2
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4a46fd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x4a46bc
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KHttpDownload::StartDownload
push 0x2b5
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412750
add esp, 0x18
call esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4a46e9
push eax
push 1
call ecx
xor eax, eax
lea ecx, [edi + 0x69c]
xchg dword [ecx], eax
mov esi, 1
jmp 0x4a47d3
push 0x1c
call fcn.004bedfd
mov esi, eax
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0x688]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x684]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x674]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x670]
sub eax, dword [edi + 0x674]
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 0x10]
mov dword [0x541c28], eax
test ebx, ebx
je 0x4a4774
push dword [edi + 4]
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0
push eax
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x4a2a80
push 0
push 0
call esi
mov dword [edi + 0x67c], eax
lea eax, [ebp - 0x9c]
push eax
push 4
push edi
push 0x4a48e0
push 0
push 0
call esi
mov dword [edi + 0x680], eax
test ebx, ebx
je 0x4a47ce
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 8]
jmp 0x4a47d3
mov esi, 9
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4a4809
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a47ff
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a4849
push edx
push ecx
call fcn.004bee2d
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4a4859
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a484f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4a484f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004bee2d
add esp, 8
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.004bee49
mov esp, ebp
pop ebp
ret 0xc