Function at 0x48d430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ee00
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x590cc0]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x5c], esi
test eax, eax
je 0x48d798
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
mov dword [ebp - 0x6c], edi
xor eax, eax
mov dword [ebp - 4], eax
cmp edi, eax
je 0x48d49d
cmp edi, 0xffffffff
jne 0x48d4e6
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x48d4b1
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x55aea4
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x356
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0041a9b0
add esp, 0x18
test edi, edi
je 0x48d798
cmp edi, 0xffffffff
je 0x48d798
jmp 0x48d791
push eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push eax
push 0x2d
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call esi
test eax, eax
je 0x48d75e
push 0
lea ecx, [ebp - 0x64]
push ecx
push 4
lea edx, [ebp - 0x60]
push edx
push edi
call esi
test eax, eax
je 0x48d75e
mov esi, dword [ebp - 0x5c]
push 0x2d
push esi
push 0
call fcn.00490f20
add esp, 0xc
cmp dword [ebp - 0x60], eax
je 0x48d554
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x368
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0041a9b0
add esp, 0x14
jmp 0x48d791
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x62c]
push ecx
mov byte [ebp - 0x20], 0
call fcn.0048be20
lea eax, [ebp - 0x20]
lea edx, [esi + 0x10]
mov esi, eax
add esp, 8
mov ecx, 0x10
sub edx, esi
lea esp, [esp]
mov esi, dword [edx + eax]
cmp esi, dword [eax]
jne 0x48d6c3
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x48d590
lea ecx, [ebx + 0x21c]
xor edx, edx
mov eax, ecx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x48d5c5
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00402460
push 4
push str..dt_
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 1
call fcn.00402340
xor eax, eax
mov esi, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x28], esi
jae 0x48d60f
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0044d200
add esp, 8
cmp dword [eax + 0x14], esi
jb 0x48d623
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0048be20
add esp, 8
cmp dword [ebp - 0x44], esi
jb 0x48d641
mov edx, dword [ebp - 0x58]
push edx
call fcn.004b9008
add esp, 4
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x20]
mov ebx, eax
mov ecx, 0x10
sub edx, ebx
mov ebx, dword [edx + eax]
cmp ebx, dword [eax]
jne 0x48d6e6
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x48d650
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp - 0x68]
cmp eax, dword [ecx + 0x690]
jb 0x48d72b
push str.Exceed_max_resume_times.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x382
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 5
call fcn.0041a9b0
add esp, 0x14
cmp dword [ebp - 0x28], esi
jb 0x48d6aa
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004b9008
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jmp 0x48d791
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x371
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0041a9b0
add esp, 0x14
jmp 0x48d791
push str.dtfile_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x37b
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0041a9b0
add esp, 0x14
cmp dword [ebp - 0x28], esi
jb 0x48d715
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], cx
jmp 0x48d791
cmp dword [ebp - 0x28], esi
jb 0x48d73c
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004b9008
add esp, 4
xor edx, edx
push edi
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], dx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
jmp 0x48d79a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jle 0x48d772
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x361
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.0041a9b0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
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.004b9ff3
mov esp, ebp
pop ebp
ret 8