Function at 0x453738
Capabilities:
Read file on windows

Disassembly:
push 0x60
mov eax, 0x4bd4a8
call fcn.00495a70
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x6c], esi
cmp eax, ebx
je 0x4539be
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x5c], edi
lea ecx, [ebp - 0x5c]
mov dword [ebp - 4], ebx
call fcn.0044d402
test al, al
je 0x4537ce
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x453799
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x4d77b8
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x356
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.004030c6
add esp, 0x18
cmp edi, ebx
je 0x4539be
cmp edi, 0xffffffff
je 0x4539be
push edi
jmp 0x4539b8
push ebx
lea eax, [ebp - 0x64]
push eax
push 0x2d
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call edi
test eax, eax
je 0x453978
push ebx
lea eax, [ebp - 0x64]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x5c]
call edi
test eax, eax
je 0x453978
push 0x2d
push esi
push ebx
call fcn.0040140c
add esp, 0xc
cmp dword [ebp - 0x68], eax
je 0x453838
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x368
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.004030c6
add esp, 0x14
jmp 0x4539aa
xor eax, eax
mov byte [ebp - 0x20], bl
lea edi, [ebp - 0x1f]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp - 0x60]
lea eax, [ebp - 0x20]
push eax
lea eax, [edi + 0x62c]
push eax
call fcn.00452341
push 0x10
lea eax, [ebp - 0x20]
push eax
add esi, 0x10
push esi
call fcn.00497e7f
add esp, 0x14
test eax, eax
je 0x453880
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x371
jmp 0x453825
add edi, 0x21c
push edi
lea ecx, [ebp - 0x3c]
call fcn.004025ee
mov esi, str..dt_
push esi
mov byte [ebp - 4], 1
call fcn.00495461
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.0040136b
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00495b20
mov eax, dword [ebp - 0x3c]
add esp, 0xc
cmp dword [ebp - 0x28], 8
jae 0x4538c4
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402a5f
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x4538d8
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00452341
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x58]
call fcn.00401129
mov edi, dword [ebp - 0x6c]
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00497e7f
add esp, 0xc
test eax, eax
je 0x453930
push str.dtfile_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x37b
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.004030c6
add esp, 0x14
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00401129
jmp 0x4539aa
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 0x60]
cmp eax, dword [ecx + 0x690]
jb 0x453956
push str.Exceed_max_resume_times.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x382
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 5
jmp 0x45391c
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00401129
cmp dword [ebp - 0x5c], ebx
je 0x453974
cmp dword [ebp - 0x5c], 0xffffffff
je 0x453974
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
jmp 0x4539c0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x45398c
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x361
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push ebx
call fcn.004030c6
add esp, 0x18
cmp dword [ebp - 0x5c], ebx
je 0x4539be
cmp dword [ebp - 0x5c], 0xffffffff
je 0x4539be
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
call fcn.00495af3
ret 8