Function at 0x471860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66be58
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x718924]
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 0x471af4
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 0x471aad
cmp esi, 0xffffffff
je 0x471aad
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 0x471a8f
push 0
lea eax, [ebp - 0x58]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call edi
test eax, eax
je 0x471a8f
push 0x2d
push ebx
push 0
call fcn.0048eb50
add esp, 0xc
cmp dword [ebp - 0x5c], eax
je 0x471946
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x3b4
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0048ffd0
add esp, 0x14
jmp 0x471ae0
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.0046eea0
add esp, 8
lea ecx, [ebx + 0x10]
lea edx, [ebp - 0x20]
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x471a6f
add ecx, 4
add edx, 4
sub edi, 4
jae 0x471974
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x38]
add eax, 0x21c
push eax
call fcn.004514e0
push str..dt_
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.00452e20
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.0048ede0
add esp, 8
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x4719dd
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0046eea0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00448fb0
mov ecx, ebx
lea edx, [ebp - 0x20]
mov edi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x471a42
add ecx, 4
add edx, 4
sub edi, 4
jae 0x471a00
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebx + 0x28]
cmp eax, dword [ecx + 0x690]
jb 0x471a30
mov eax, 5
mov ecx, 0x3ce
mov edx, str.Exceed_max_resume_times.
jmp 0x471a4e
lea ecx, [ebp - 0x38]
mov edi, 1
call fcn.00448fb0
jmp 0x471ae2
xor eax, eax
mov ecx, 0x3c7
mov edx, str.dtfile_md5_not_match.
push edx
push str.kupdate::KHttpDownload::ReadStateFromCfg
push ecx
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push eax
call fcn.0048ffd0
add esp, 0x14
lea ecx, [ebp - 0x38]
xor edi, edi
call fcn.00448fb0
jmp 0x471ae2
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x3bd
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0048ffd0
add esp, 0x14
jmp 0x471ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x471aa1
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3ad
mov edx, str.Failed_ReadFile:_0x_08x.
jmp 0x471ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x471abf
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3a2
mov edx, 0x67ce5c
push eax
push edx
push str.kupdate::KHttpDownload::ReadStateFromCfg
push ecx
push str.H:pub_9aqe_rc_2404Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0048ffd0
add esp, 0x18
xor edi, edi
test esi, esi
je 0x471af2
cmp esi, 0xffffffff
je 0x471af2
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.004cb998
mov esp, ebp
pop ebp
ret 8