Function at 0x4457f5
Capabilities:
Create thread
Delete file

Disassembly:
push 0xa0
mov eax, 0x50577c
call fcn.004dead8
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
and dword [ebp - 0xa4], 0
mov esi, ecx
lea edi, [esi + 0x69c]
push dword [edi]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa0], edi
call ebx
test eax, eax
je 0x445845
push 2
pop eax
call fcn.004deb5b
ret 0xc
push 1
push edi
call ebx
push dword [ebp - 0xa8]
mov ecx, esi
call fcn.00444fa9
push 0x104
push dword [ebp - 0xac]
lea eax, [esi + 0x14]
push eax
call fcn.004e27a9
push 0x2d
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004de430
add esp, 0x18
lea eax, [esi + 0x21c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406d28
and dword [ebp - 4], 0
mov edi, str..dt_
push edi
call fcn.004df380
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004082b9
lea eax, [esi + 0x21c]
push eax
lea ecx, [ebp - 0x48]
call fcn.00406d28
mov edi, str..cfg_
push edi
mov byte [ebp - 4], 1
call fcn.004df380
pop ecx
push eax
push edi
lea ecx, [ebp - 0x48]
call fcn.004082b9
lea edi, [esi + 0x21c]
push edi
call fcn.0043fdd5
pop ecx
test al, al
je 0x445919
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.00407172
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
mov dword [ebp - 0xa4], 1
jb 0x4458ff
mov eax, dword [eax]
lea ecx, [esi + 0x62c]
push ecx
push eax
call fcn.004e2ef7
pop ecx
pop ecx
mov byte [ebp - 0x95], 1
test eax, eax
je 0x445920
mov byte [ebp - 0x95], 0
test byte [ebp - 0xa4], 1
je 0x445935
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00406991
cmp byte [ebp - 0x95], 0
je 0x445980
push 0
push dword [ebp - 0xa0]
call ebx
push 1
push 2
mov ecx, esi
call fcn.00443fb3
push 0
push 0xb
mov ecx, esi
call fcn.00443fb3
push 0xb
pop esi
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00406991
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00406991
mov eax, esi
jmp 0x44583d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x44598c
lea eax, [ebp - 0x2c]
push eax
call fcn.0043fdd5
pop ecx
test al, al
je 0x445a26
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4459a7
lea eax, [ebp - 0x48]
push eax
call fcn.0043fdd5
pop ecx
test al, al
je 0x445a26
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4459be
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x94]
push ecx
push eax
mov ecx, esi
call fcn.0044504b
test eax, eax
je 0x445a26
lea eax, [ebp - 0x94]
push eax
mov ecx, esi
call fcn.00443f4b
push str.Start_resume.
push str.kupdate::KHttpDownload::StartDownload
push 0x262
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push 7
call fcn.004081cf
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
inc ecx
add esp, 0x14
inc dword [esi + 0x68c]
cmp dword [ebp - 0x18], 8
mov dword [esi + 0x678], ecx
jae 0x445a18
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push ecx
jmp 0x445a66
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x445a3b
lea eax, [ebp - 0x2c]
push eax
call edi
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x445a4a
lea eax, [ebp - 0x48]
push eax
call edi
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x445a59
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
jne 0x445acd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jle 0x445a90
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_CreateFile:_0x_08x.
push str.kupdate::KHttpDownload::StartDownload
push 0x274
push str.D:_fun_pow_4_20190808Coding_supportminisite_srcwebhttpdownload.cpp
push 0
call fcn.004081cf
add esp, 0x18
call edi
push eax
push 1
mov ecx, esi
call fcn.00443fb3
push 0
push dword [ebp - 0xa0]
call ebx
xor esi, esi
inc esi
jmp 0x445961
push 0x1c
call fcn.004de4e4
push 0x1c
xor ebx, ebx
mov edi, eax
push ebx
push edi
call fcn.004de430
mov eax, dword [esi + 0x10]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x688]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x684]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x674]
mov dword [edi + 0xc], ecx
mov ecx, dword [esi + 0x670]
sub ecx, dword [esi + 0x674]
add esp, 0x10
mov dword [edi + 0x10], ecx
mov dword [edi + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x5493b8], eax
cmp dword [ebp + 0x10], ebx
je 0x445b33
push dword [esi + 4]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x9c]
push eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x444b49
push ebx
push ebx
mov dword [ebp - 0x9c], ebx
call edi
mov dword [esi + 0x67c], eax
lea eax, [ebp - 0x9c]
push eax
push 4
push esi
push 0x4457a6
push ebx
push ebx
call edi
mov dword [esi + 0x680], eax
cmp dword [ebp + 0x10], ebx
je 0x445b88
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [esi + 8]
jmp 0x445961
push 9
jmp 0x445960