Function at 0x40a21f
Capabilities:
Delete file
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
call fcn.0040a1cc
mov ecx, edi
call fcn.0040a18c
test al, al
je 0x40a27a
xor ebx, ebx
mov ecx, edi
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.0040aab7
test al, al
je 0x40a27a
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040a9d6
test al, al
jne 0x40a285
mov dword [edi + 0x84], 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, edi
call fcn.0040aa4b
mov dword [edi + 4], eax
cmp eax, 0x194
jne 0x40a2a2
mov dword [edi + 0x84], 5
jmp 0x40a27a
push ebx
push 0x80
push 2
push ebx
push 2
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x40a2d0
mov dword [edi + 0x84], 7
jmp 0x40a27a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push dword [esp + 0x20]
push eax
call esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
push ebx
push ebx
push dword [esp + 0x20]
call esi
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x40a31c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a27a
push 0x1000
call fcn.00428679
mov esi, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x40a339
mov eax, dword [esp + 0x1c]
cmp ecx, 0x1000
jbe 0x40a35a
push eax
call fcn.0042865e
pop ecx
push dword [esp + 0x10]
call fcn.00428679
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x20]
push edx
push ecx
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40a41d
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40a41d
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x40a41d
mov ecx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x40a3fd
mov edx, dword [eax]
sub esp, 0x10
movd xmm0, ecx
mov eax, ecx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov ecx, dword [edi + 0x80]
addsd xmm0, qword [eax*8 + 0x44e090]
mov eax, dword [esp + 0x28]
shr eax, 0x1f
movsd qword [esp + 8], xmm0
movd xmm0, dword [esp + 0x28]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x44e090]
movsd qword [esp], xmm0
push ebx
push dword [edi + 0x7c]
call dword [edx]
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40a41d
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40a335
mov bl, 1
push dword [esp + 0x1c]
call fcn.0042865e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40a43b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
jmp 0x40a27c