Function at 0x4452db
Capabilities:
Write file on windows

Disassembly:
push 0x94
mov eax, 0x50570f
call fcn.004dead8
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
cmp ebx, edi
je 0x445566
cmp dword [esi + 0x678], edi
je 0x445566
push 0x2d
lea eax, [ebp - 0x94]
push edi
push eax
call fcn.004de430
mov eax, dword [esi + 0x670]
mov dword [ebp - 0x70], eax
mov eax, dword [esi + 0x674]
mov dword [ebp - 0x74], eax
mov eax, dword [esi + 0x68c]
mov dword [ebp - 0x6c], eax
mov al, byte [esi + 0x678]
mov byte [ebp - 0x68], al
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0x62c]
push eax
call fcn.00443cf5
add esp, 0x14
add esi, 0x21c
push esi
lea ecx, [ebp - 0x48]
call fcn.00406d28
mov esi, str..dt_
push esi
mov dword [ebp - 4], edi
call fcn.004df380
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004082b9
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x445382
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407172
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], edi
jne 0x4453b9
push str.Get_dtFile_Md5_Failed.
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x398
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push edi
call fcn.004081cf
add esp, 0x14
jmp 0x445550
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4453c5
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x94]
push ecx
push eax
call fcn.00443cf5
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x64]
call fcn.00406d28
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4453e9
lea eax, [ebp - 0x64]
push edi
push 0x80
push 2
push edi
xor esi, esi
inc esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x9c], ebx
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.004087da
test al, al
je 0x44547a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x445431
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x3a2
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push edi
call fcn.004081cf
add esp, 0x18
cmp ebx, edi
je 0x44545f
cmp ebx, 0xffffffff
je 0x44545f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
lea ecx, [ebp - 0x64]
call fcn.00406991
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406991
push edi
push esi
jmp 0x44555e
push 0x2d
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405918
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0xc
push edi
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0x98]
push eax
push 0x2d
lea eax, [ebp - 0x94]
push eax
push ebx
mov dword [ebp - 0x98], edi
call esi
test eax, eax
je 0x445503
push edi
lea eax, [ebp - 0x98]
push eax
push 4
lea eax, [ebp - 0xa0]
push eax
push ebx
call esi
test eax, eax
je 0x445503
cmp ebx, edi
je 0x4454de
cmp ebx, 0xffffffff
je 0x4454de
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x64]
call fcn.00406991
push edi
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406991
push edi
push esi
lea ecx, [ebp - 0x48]
call fcn.00406991
mov eax, esi
jmp 0x445568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x445517
and eax, 0xffff
or eax, 0x80070000
push eax
push 0x50bb3c
push str.kupdate::KHttpDownload::SaveStateToCfg
push 0x3ad
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push edi
call fcn.004081cf
add esp, 0x18
cmp ebx, edi
je 0x445545
cmp ebx, 0xffffffff
je 0x445545
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 1
lea ecx, [ebp - 0x64]
call fcn.00406991
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406991
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.00406991
xor eax, eax
call fcn.004deb5b
ret 4