Function at 0x4a3cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7ea8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
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 dword [ebp - 0x54], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4a3f64
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x60], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4a3f1d
cmp esi, 0xffffffff
je 0x4a3f1d
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x58]
push 0
push eax
push 0x2d
push ebx
push esi
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call edi
test eax, eax
je 0x4a3eff
push 0
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call edi
test eax, eax
je 0x4a3eff
push 0x2d
push ebx
push 0
call fcn.004a4930
add esp, 0xc
cmp dword [ebp - 0x5c], eax
je 0x4a3db6
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x3a9
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412750
add esp, 0x14
jmp 0x4a3f50
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x54]
add eax, 0x62c
push eax
call fcn.004501d0
add esp, 8
lea ecx, [ebx + 0x10]
lea edx, [ebp - 0x20]
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a3edf
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4a3de4
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
add eax, 0x21c
push eax
call fcn.00404c50
push str..dt_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.004202f0
xor eax, eax
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00478110
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4a3e4d
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004501d0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00402d80
mov ecx, ebx
lea edx, [ebp - 0x20]
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a3eb2
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4a3e70
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebx + 0x28]
cmp eax, dword [ecx + 0x690]
jb 0x4a3ea0
mov eax, 5
mov ecx, 0x3c3
mov edx, str.Exceed_max_resume_times.
jmp 0x4a3ebe
lea ecx, [ebp - 0x38]
mov edi, 1
call fcn.00402d80
jmp 0x4a3f52
xor eax, eax
mov ecx, 0x3bc
mov edx, str.dtfile_md5_not_match.
push edx
push str.kupdate::KHttpDownload::ReadStateFromCfg
push ecx
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push eax
call fcn.00412750
add esp, 0x14
lea ecx, [ebp - 0x38]
xor edi, edi
call fcn.00402d80
jmp 0x4a3f52
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x3b2
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412750
add esp, 0x14
jmp 0x4a3f50
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4a3f11
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3a2
mov edx, str.Failed_ReadFile:_0x_08x.
jmp 0x4a3f39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4a3f2f
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x397
mov edx, 0x50fc70
push eax
push edx
push str.kupdate::KHttpDownload::ReadStateFromCfg
push ecx
push str.H:_rc_v12_i18n_20231201_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412750
add esp, 0x18
xor edi, edi
test esi, esi
je 0x4a3f62
cmp esi, 0xffffffff
je 0x4a3f62
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
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 8