Function at 0x40a27f
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.0040a22c
mov ecx, edi
call fcn.0040a1ec
test al, al
je 0x40a2da
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.0040ab17
test al, al
je 0x40a2da
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040aa36
test al, al
jne 0x40a2e5
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.0040aaab
mov dword [edi + 4], eax
cmp eax, 0x194
jne 0x40a302
mov dword [edi + 0x84], 5
jmp 0x40a2da
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 0x40a330
mov dword [edi + 0x84], 7
jmp 0x40a2da
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 0x40a37c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40a2da
push 0x1000
call fcn.004286e9
mov esi, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x40a399
mov eax, dword [esp + 0x1c]
cmp ecx, 0x1000
jbe 0x40a3ba
push eax
call fcn.004286ce
pop ecx
push dword [esp + 0x10]
call fcn.004286e9
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 0x40a47d
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 0x40a47d
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x40a47d
mov ecx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x40a45d
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 + 0x44e0b0]
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 + 0x44e0b0]
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 0x40a47d
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x40a395
mov bl, 1
push dword [esp + 0x1c]
call fcn.004286ce
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40a49b
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
jmp 0x40a2dc