Function at 0x483300
Capabilities:
Read file on windows

Disassembly:
push 0x60
mov eax, 0x4b9d31
call fcn.004935c5
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 0x483586
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.0047b7a6
test al, al
je 0x483396
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x483361
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x4d268c
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x2c1
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push ebx
call fcn.0042f683
add esp, 0x18
cmp edi, ebx
je 0x483586
cmp edi, 0xffffffff
je 0x483586
push edi
jmp 0x483580
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 0x483540
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 0x483540
push 0x2d
push esi
push ebx
call fcn.0048d0b2
add esp, 0xc
cmp dword [ebp - 0x68], eax
je 0x483400
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x2d3
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push ebx
call fcn.0042f683
add esp, 0x14
jmp 0x483572
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.004824d7
push 0x10
lea eax, [ebp - 0x20]
push eax
add esi, 0x10
push esi
call fcn.00495652
add esp, 0x14
test eax, eax
je 0x483448
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x2dc
jmp 0x4833ed
add edi, 0x21c
push edi
lea ecx, [ebp - 0x3c]
call fcn.0042e48d
mov esi, str..dt_
push esi
mov byte [ebp - 4], 1
call fcn.00493091
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.0042edb8
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.00492b40
mov eax, dword [ebp - 0x3c]
add esp, 0xc
cmp dword [ebp - 0x28], 8
jae 0x48348c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042e993
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x4834a0
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004824d7
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x58]
call fcn.0042e109
mov edi, dword [ebp - 0x6c]
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.00495652
add esp, 0xc
test eax, eax
je 0x4834f8
push str.dtfile_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x2e6
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push ebx
call fcn.0042f683
add esp, 0x14
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0042e109
jmp 0x483572
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 0x60]
cmp eax, dword [ecx + 0x690]
jb 0x48351e
push str.Exceed_max_resume_times.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x2ed
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push 5
jmp 0x4834e4
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.0042e109
cmp dword [ebp - 0x5c], ebx
je 0x48353c
cmp dword [ebp - 0x5c], 0xffffffff
je 0x48353c
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x483588
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x483554
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x2cc
push str.S:_func_improvement_20150701_branchCoding_supportwpsupdateUpdateClientupdatewebhttpdownload.cpp
push ebx
call fcn.0042f683
add esp, 0x18
cmp dword [ebp - 0x5c], ebx
je 0x483586
cmp dword [ebp - 0x5c], 0xffffffff
je 0x483586
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.00493648
ret 8