Function at 0x409ebf
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.00409e6c
mov ecx, edi
call fcn.00409e2c
test al, al
je 0x409f1a
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.0040a757
test al, al
je 0x409f1a
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040a676
test al, al
jne 0x409f25
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.0040a6eb
mov dword [edi + 4], eax
cmp eax, 0x194
jne 0x409f42
mov dword [edi + 0x84], 5
jmp 0x409f1a
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 0x409f70
mov dword [edi + 0x84], 7
jmp 0x409f1a
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 0x409fbc
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x409f1a
push 0x1000
call fcn.00428329
mov esi, dword [esp + 0x18]
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
jmp 0x409fd9
mov eax, dword [esp + 0x1c]
cmp ecx, 0x1000
jbe 0x409ffa
push eax
call fcn.0042830e
pop ecx
push dword [esp + 0x10]
call fcn.00428329
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 0x40a0bd
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 0x40a0bd
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x14]
jne 0x40a0bd
mov ecx, dword [esp + 0x24]
add ecx, eax
mov eax, dword [edi + 0x80]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x40a09d
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 + 0x44d040]
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 + 0x44d040]
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 0x40a0bd
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x409fd5
mov bl, 1
push dword [esp + 0x1c]
call fcn.0042830e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x40a0db
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
jmp 0x409f1c