Function at 0x5713e7
Capabilities:
Delete file
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
push 0xa0
mov eax, 0x58d42c
call fcn.00532159
mov edi, ecx
xor ebx, ebx
lea edx, [ebp + 8]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x90]
mov esi, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x18], ebx
call fcn.00404624
push ebx
push ebx
push ebx
push ebx
push str.CallHandler
mov byte [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [ebp - 0xac], ecx
test ecx, ecx
jne 0x571442
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x57164b
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ebx
cmovae eax, dword [ebp - 0x48]
push 0x50
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0xa8], ecx
test ecx, ecx
jne 0x571471
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x571639
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push ebx
cmovae eax, dword [ebp - 0x78]
push ebx
push ebx
push ebx
push eax
push 0x5c6370
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0xa4], ebx
test ebx, ebx
jne 0x5714a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor bl, bl
jmp 0x57162d
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x571617
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x571617
add edi, 0x1c
cmp dword [edi + 0x14], 8
jb 0x5714de
mov eax, dword [edi]
jmp 0x5714e0
mov eax, edi
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa0], eax
cmp eax, 0xffffffff
je 0x571617
xor eax, eax
mov dword [ebp - 0x9c], eax
and dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x5715e4
mov eax, dword [ebp - 0x94]
inc eax
push eax
call fcn.00415a53
mov dword [ebp - 0x98], eax
pop ecx
test eax, eax
je 0x5715db
mov ecx, dword [ebp - 0x94]
inc ecx
push ecx
push 0
push eax
call fcn.0054b330
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x5715e4
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5715ec
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0x14]
push 0
push eax
push 0x3e80
push dword [0x5ff34c]
mov dword [ebp - 0x9c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 0x98]
call fcn.00415a4e
cmp dword [ebp - 0x94], 0
pop ecx
ja 0x571510
jmp 0x5715ec
and dword [ebp - 0x94], 0
jmp 0x5715ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x9c], 0x10000
mov bl, 1
jae 0x571621
cmp dword [edi + 0x14], 8
jb 0x57160e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x57161f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor bl, bl
push dword [ebp - 0xa4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0xac]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test bl, bl
jne 0x57169e
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.winHttpDownload
call fcn.004036e4
mov dl, bl
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00572271
add esp, 0x48
jmp 0x5716a2
xor ebx, ebx
mov esi, ebx
lea ecx, [ebp - 0x90]
call fcn.0040497a
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00403a36
mov eax, esi
call fcn.00532103
ret 0x18