Function at 0x4aa3b0
Capabilities:
Create thread
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50ba03
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x567e00]
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 - 0xd4], eax
mov eax, dword [ecx]
xchg dword [ecx], eax
test eax, eax
je 0x4aa404
mov eax, 2
jmp 0x4aaaaf
lea ebx, [edi + 0x21c]
mov dword [ebp - 0x9c], 0
mov ecx, ebx
mov dword [ebp - 0x8c], 0
xor eax, eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa436
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00403a70
lea eax, [ebp - 0x9c]
mov dword [ebp - 4], 0
push eax
call fcn.004e4980
mov edx, dword [ebp - 0x88]
add esp, 4
mov byte [ebp - 0xcd], al
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4aa4bd
mov ecx, dword [ebp - 0x9c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aa4ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4aa4ad
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
mov al, byte [ebp - 0xcd]
add esp, 8
xor ecx, ecx
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], cx
test al, al
je 0x4aa506
push ebx
push str._s_inBlackDownloadDir__download_fail
push str.kupdate::KHttpDownload::StartDownload
push 0x294
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ecx
call fcn.00412230
add esp, 0x18
mov eax, 0xe
jmp 0x4aaaaf
mov eax, 1
lea ecx, [edi + 0x69c]
xchg dword [ecx], eax
push 0
push 0x533c58
push str.HKCUSoftwareKingsoftOffice6.0CommonupdateinfoDownloadMethod
call fcn.0044d690
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4aa531
mov eax, dword [esi]
push eax
lea eax, [edi + 0x424]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [esi + 0x30]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4aa552
mov eax, dword [eax]
push eax
push 0x104
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [esi + 0x5c]
mov ecx, 0x20
add esp, 0xc
cmp eax, ecx
cmova eax, ecx
cmp dword [esi + 0x60], 8
lea ecx, [eax + eax]
lea eax, [esi + 0x4c]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xdc], eax
jb 0x4aa58f
mov eax, dword [eax]
mov dword [ebp - 0xdc], eax
lea edx, [edi + 0x62c]
test ecx, ecx
je 0x4aa600
test edx, edx
jne 0x4aa5ab
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x4aa5fa
test eax, eax
je 0x4aa5c1
cmp ecx, 0x42
ja 0x4aa5c1
push ecx
push eax
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x4aa600
push 0x42
push 0
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0xdc], 0
jne 0x4aa5e5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0x16
jmp 0x4aa5fa
cmp dword [ebp - 0xe4], 0x42
jbe 0x4aa600
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 - 0xd4]
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 - 0xcc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, ebx
mov dword [ebp - 0x84], 0
add esp, 0x1c
mov dword [ebp - 0x74], 0
xor eax, eax
mov dword [ebp - 0x70], 7
mov word [ebp - 0x84], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa686
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x84]
call fcn.00403a70
push 4
push str..dt_
lea ecx, [ebp - 0x84]
mov dword [ebp - 4], 1
call fcn.004038f0
mov ecx, ebx
mov dword [ebp - 0x6c], 0
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
lea edx, [ecx + 2]
jmp 0x4aa6e0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa6e0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x6c]
call fcn.00403a70
push 5
push str..cfg_
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.004038f0
mov eax, 0x30
push 0x40
mov word [ebp - 0x54], ax
lea eax, [ebp - 0x52]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x54]
push eax
push ebx
call fcn.004ecbf0
push ebx
call fcn.00416b00
add esp, 0x18
test al, al
je 0x4aa77d
lea eax, [edi + 0x62c]
push eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4aa77d
lea ecx, [edi + 0x69c]
xchg dword [ecx], eax
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4aa773
push 1
push 2
call esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x4aa773
push 0
push 0xb
call esi
mov esi, 0xb
jmp 0x4aaa24
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push eax
call fcn.00416b00
add esp, 4
test al, al
je 0x4aa89c
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call fcn.00416b00
add esp, 4
test al, al
je 0x4aa89c
cmp dword [ebp - 0x58], 8
lea ecx, [ebp - 0xcc]
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push ecx
push eax
mov ecx, edi
call fcn.004a9ce0
test eax, eax
je 0x4aa89c
mov eax, dword [ebp - 0xac]
fild dword [ebp - 0xac]
test eax, eax
jns 0x4aa7f3
fadd qword [0x51e658]
fstp qword [ebp - 0xd8]
fld qword [ebp - 0xd8]
fmul qword [0x51e640]
mov eax, dword [ebp - 0xa8]
fild dword [ebp - 0xa8]
test eax, eax
jns 0x4aa81b
fadd qword [0x51e658]
fstp qword [ebp - 0xd8]
fdiv qword [ebp - 0xd8]
call fcn.004c7450
mov dword [edi + 0x698], eax
mov eax, dword [ebp - 0xac]
push str.Start_resume.
mov dword [edi + 0x674], eax
mov eax, dword [ebp - 0xa8]
push str.kupdate::KHttpDownload::StartDownload
mov dword [edi + 0x670], eax
mov eax, dword [ebp - 0xa4]
push 0x2af
mov dword [edi + 0x68c], eax
movzx eax, byte [ebp - 0xa0]
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 7
mov dword [edi + 0x678], eax
call fcn.00412230
add esp, 0x14
mov dword [edi + 0x678], 1
inc dword [edi + 0x68c]
push 0
push 0x80
push 3
jmp 0x4aa8d0
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call esi
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
cmovae eax, dword [ebp - 0x84]
push eax
call esi
cmp dword [ebp - 0x58], 8
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push eax
call esi
push 0
push 0x80
push 2
cmp dword [ebp - 0x70], 8
lea eax, [ebp - 0x84]
push 0
cmovae eax, dword [ebp - 0x84]
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
jne 0x4aa94e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x4aa90d
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KHttpDownload::StartDownload
push 0x2c1
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412230
add esp, 0x18
call esi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4aa93a
push eax
push 1
call ecx
xor eax, eax
lea ecx, [edi + 0x69c]
xchg dword [ecx], eax
mov esi, 1
jmp 0x4aaa24
push 0x1c
call fcn.004c6f3f
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 [0x56d17c], eax
test ebx, ebx
je 0x4aa9c5
push dword [edi + 4]
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xe0], 0
push eax
push 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x4a89c0
push 0
push 0
call esi
mov dword [edi + 0x67c], eax
lea eax, [ebp - 0xe0]
push eax
push 4
push edi
push 0x4aab30
push 0
push 0
call esi
mov dword [edi + 0x680], eax
test ebx, ebx
je 0x4aaa1f
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi + 8]
jmp 0x4aaa24
mov esi, 9
mov edx, dword [ebp - 0x58]
cmp edx, 8
jb 0x4aaa5a
mov ecx, dword [ebp - 0x6c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aaa50
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aaa9d
push edx
push ecx
call fcn.004c6f6f
add esp, 8
mov edx, dword [ebp - 0x70]
xor eax, eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 7
mov word [ebp - 0x6c], ax
cmp edx, 8
jb 0x4aaaad
mov ecx, dword [ebp - 0x84]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aaaa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4aaaa3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.004c6f6f
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.004c6f8b
mov esp, ebp
pop ebp
ret 0xc