Function at 0x40a2af
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.0040a25c
mov ecx, edi
call fcn.0040a21c
test al, al
je 0x40a30a
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.0040ab47
test al, al
je 0x40a30a
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040aa66
test al, al
jne 0x40a315
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.0040aadb
mov dword [edi + 4], eax
cmp eax, 0x194
jne 0x40a332
mov dword [edi + 0x84], 5
jmp 0x40a30a
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 0x40a360
mov dword [edi + 0x84], 7
jmp 0x40a30a
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 0x40a3ac
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a30a
push 0x1000
call fcn.00428759
mov esi, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x40a3c9
mov eax, dword [esp + 0x1c]
cmp ecx, 0x1000
jbe 0x40a3ea
push eax
call fcn.0042873e
pop ecx
push dword [esp + 0x10]
call fcn.00428759
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 0x40a4ad
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 0x40a4ad
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x40a4ad
mov ecx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x40a48d
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 + 0x44e0a0]
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 + 0x44e0a0]
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 0x40a4ad
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40a3c5
mov bl, 1
push dword [esp + 0x1c]
call fcn.0042873e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40a4cb
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
jmp 0x40a30c