Function at 0x4a9ce0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b948
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x567e00]
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 - 0x80], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x4a9fa9
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 - 0x8c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4a9f5e
cmp esi, 0xffffffff
je 0x4a9f5e
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x84]
push 0
push eax
push 0x2d
push ebx
push esi
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
call edi
test eax, eax
je 0x4a9f40
push 0
lea eax, [ebp - 0x84]
push eax
push 4
lea eax, [ebp - 0x88]
push eax
push esi
call edi
test eax, eax
je 0x4a9f40
push 0x2d
push ebx
push 0
call sub.Qt5CoreKso.dll_z_crc32
add esp, 0xc
cmp dword [ebp - 0x88], eax
je 0x4a9dde
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x3b8
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412230
add esp, 0x14
jmp 0x4a9f91
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 - 0x80]
add eax, 0x62c
push eax
call fcn.00451560
add esp, 8
lea ecx, [ebx + 0x10]
lea edx, [ebp - 0x20]
mov edi, 0xc
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a9f20
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4a9e10
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x7c]
add eax, 0x21c
push eax
call fcn.004050b0
push str..dt_
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004203e0
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x30
push 0x40
mov word [ebp - 0x64], ax
lea eax, [ebp - 0x62]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x68], 8
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x7c]
cmovae eax, dword [ebp - 0x7c]
push ecx
push eax
call fcn.004ecbf0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00451560
add esp, 0x1c
lea edx, [ebp - 0x20]
mov ecx, ebx
mov edi, 0xc
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4a9ee9
add ecx, 4
add edx, 4
sub edi, 4
jae 0x4a9ea0
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x28]
cmp eax, dword [ecx + 0x690]
jb 0x4a9ed0
mov eax, 5
mov ecx, 0x3d4
mov edx, str.Exceed_max_resume_times.
jmp 0x4a9ef5
lea ecx, [ebp - 0x7c]
mov edi, 1
call fcn.00403430
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a9fa7
xor eax, eax
mov ecx, 0x3cd
mov edx, str.dtfile_md5_not_match.
push edx
push str.kupdate::KHttpDownload::ReadStateFromCfg
push ecx
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push eax
call fcn.00412230
add esp, 0x14
lea ecx, [ebp - 0x7c]
xor edi, edi
call fcn.00403430
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a9fa7
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x3c1
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412230
add esp, 0x14
jmp 0x4a9f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4a9f52
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3b1
mov edx, str.Failed_ReadFile:_0x_08x.
jmp 0x4a9f7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4a9f70
movzx eax, ax
or eax, 0x80070000
mov ecx, 0x3a6
mov edx, 0x533d1c
push eax
push edx
push str.kupdate::KHttpDownload::ReadStateFromCfg
push ecx
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcwebhttpdownload.cpp
push 0
call fcn.00412230
add esp, 0x18
test esi, esi
je 0x4a9fa5
xor edi, edi
cmp esi, 0xffffffff
je 0x4a9fa5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4a9fa7
xor edi, edi
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.004c6f8b
mov esp, ebp
pop ebp
ret 8