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

Disassembly:
push 0xa0
mov eax, 0x58cdbb
call fcn.00532017
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 0x571302
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x57150b
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 0x571331
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x5714f9
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 0x5c5370
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
mov dword [ebp - 0xa4], ebx
test ebx, ebx
jne 0x571368
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor bl, bl
jmp 0x5714ed
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 0x5714d7
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x5714d7
add edi, 0x1c
cmp dword [edi + 0x14], 8
jb 0x57139e
mov eax, dword [edi]
jmp 0x5713a0
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 0x5714d7
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 0x5714a4
mov eax, dword [ebp - 0x94]
inc eax
push eax
call fcn.00415936
mov dword [ebp - 0x98], eax
pop ecx
test eax, eax
je 0x57149b
mov ecx, dword [ebp - 0x94]
inc ecx
push ecx
push 0
push eax
call fcn.0054b1f0
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 0x5714a4
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 0x5714ac
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0x14]
push 0
push eax
push 0x3e80
push dword [0x5fe35c]
mov dword [ebp - 0x9c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 0x98]
call fcn.0041593f
cmp dword [ebp - 0x94], 0
pop ecx
ja 0x5713d0
jmp 0x5714ac
and dword [ebp - 0x94], 0
jmp 0x5714ac
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 0x5714e1
cmp dword [edi + 0x14], 8
jb 0x5714ce
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x5714df
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 0x57155e
xor ebx, ebx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xac], esp
push 0x5c52a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x5c4ffe
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.00572131
add esp, 0x48
jmp 0x571562
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.00531fc1
ret 0x18