Function at 0x44504b
Capabilities:
Read file on windows

Disassembly:
push 0x60
mov eax, 0x5056c7
call fcn.004dead8
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 0x4452d1
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
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.004087da
test al, al
je 0x4450e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4450ac
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x517bf4
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x356
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push ebx
call fcn.004081cf
add esp, 0x18
cmp edi, ebx
je 0x4452d1
cmp edi, 0xffffffff
je 0x4452d1
push edi
jmp 0x4452cb
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 0x44528b
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 0x44528b
push 0x2d
push esi
push ebx
call fcn.00405918
add esp, 0xc
cmp dword [ebp - 0x68], eax
je 0x44514b
push str.CfgFile_crc_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x368
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push ebx
call fcn.004081cf
add esp, 0x14
jmp 0x4452bd
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.00443cf5
push 0x10
lea eax, [ebp - 0x20]
push eax
add esi, 0x10
push esi
call fcn.004e1177
add esp, 0x14
test eax, eax
je 0x445193
push str.file_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x371
jmp 0x445138
add edi, 0x21c
push edi
lea ecx, [ebp - 0x3c]
call fcn.00406d28
mov esi, str..dt_
push esi
mov byte [ebp - 4], 1
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x3c]
call fcn.004082b9
push 0x10
lea eax, [ebp - 0x20]
push ebx
push eax
call fcn.004de430
mov eax, dword [ebp - 0x3c]
add esp, 0xc
cmp dword [ebp - 0x28], 8
jae 0x4451d7
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00407172
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x4451eb
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00443cf5
pop ecx
pop ecx
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x58]
call fcn.00406991
mov edi, dword [ebp - 0x6c]
push 0x10
lea eax, [ebp - 0x20]
push eax
push edi
call fcn.004e1177
add esp, 0xc
test eax, eax
je 0x445243
push str.dtfile_md5_not_match.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x37b
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push ebx
call fcn.004081cf
add esp, 0x14
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406991
jmp 0x4452bd
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp - 0x60]
cmp eax, dword [ecx + 0x690]
jb 0x445269
push str.Exceed_max_resume_times.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x382
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push 5
jmp 0x44522f
push ebx
push esi
lea ecx, [ebp - 0x3c]
call fcn.00406991
cmp dword [ebp - 0x5c], ebx
je 0x445287
cmp dword [ebp - 0x5c], 0xffffffff
je 0x445287
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4452d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x44529f
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_ReadFile:_0x_08x.
push str.kupdate::KHttpDownload::ReadStateFromCfg
push 0x361
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push ebx
call fcn.004081cf
add esp, 0x18
cmp dword [ebp - 0x5c], ebx
je 0x4452d1
cmp dword [ebp - 0x5c], 0xffffffff
je 0x4452d1
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004deb5b
ret 8