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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.004e7720
mov ecx, dword [ebp - 8]
call fcn.004e72c0
movzx eax, al
test eax, eax
jne 0x4e6d17
xor al, al
jmp 0x4e6f9a
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 8]
call fcn.004e7330
movzx edx, al
test edx, edx
jne 0x4e6d57
xor al, al
jmp 0x4e6f9a
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 8]
call fcn.004e7580
movzx ecx, al
test ecx, ecx
jne 0x4e6d7e
mov edx, dword [ebp - 8]
mov dword [edx + 0x84], 4
xor al, al
jmp 0x4e6f9a
mov ecx, dword [ebp - 8]
call fcn.004e76a0
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0x194
jne 0x4e6dac
mov eax, dword [ebp - 8]
mov dword [eax + 0x84], 5
xor al, al
jmp 0x4e6f9a
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4e6de5
mov edx, dword [ebp - 8]
mov dword [edx + 0x84], 7
xor al, al
jmp 0x4e6f9a
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4e6e41
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
xor al, al
jmp 0x4e6f9a
push 0x1000
call fcn.0057e78b
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, 1
test eax, eax
je 0x4e6f6f
cmp dword [ebp - 0x10], 0x1000
jbe 0x4e6e82
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0056b88b
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call fcn.0057e78b
add esp, 4
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x4e6ea4
jmp 0x4e6f6f
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x4e6ec8
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x2c]
je 0x4e6ecd
jmp 0x4e6f6f
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 0x80], 0
je 0x4e6f47
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
cvtsi2sd xmm0, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
shr ecx, 0x1f
addsd xmm0, qword [ecx*8 + 0x61ebb0]
sub esp, 8
movsd qword [esp], xmm0
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edx
cvtsi2sd xmm0, dword [ebp - 0x28]
mov eax, dword [ebp - 0x28]
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x61ebb0]
sub esp, 8
movsd qword [esp], xmm0
push 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
mov edx, dword [ebp - 8]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x80]
mov edx, dword [eax]
call edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x4e6f5e
jmp 0x4e6f6f
cmp dword [ebp - 0x10], 0
ja 0x4e6f6a
mov byte [ebp - 1], 1
jmp 0x4e6f6f
jmp 0x4e6e51
mov eax, dword [ebp - 0x14]
push eax
call fcn.0056b88b
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x4e6f97
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8