Function at 0x10009b49
Capabilities:
Create http request
Delete file
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push 0x248
mov eax, 0x100289bd
call fcn.10015c84
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, 0x2000
push esi
mov dword [ebp - 0x250], eax
call fcn.100152a7
pop ecx
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
or dword [ebp - 0x248], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x238], ebx
cmp eax, ebx
jne 0x10009bbb
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.1000246b
xor eax, eax
call fcn.10015d07
ret
push esi
push ebx
push eax
call fcn.100154e0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
push str.IE_Plugin_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x254], eax
cmp eax, ebx
jne 0x10009bf3
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.1000246b
mov eax, esi
jmp 0x10009bb5
push str.Accept:___r_n
call fcn.1001539a
pop ecx
push eax
push str.Accept:___r_n
lea ecx, [ebp - 0x234]
call fcn.100027d1
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x10009c24
lea eax, [ebp - 0x234]
push ebx
push 0x80000100
push dword [ebp - 0x224]
push eax
push edi
push dword [ebp - 0x254]
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp - 0x24c], eax
cmp eax, ebx
je 0x10009dc8
cmp byte [ebp + 0x10], bl
je 0x10009dc8
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10009907
pop ecx
pop ecx
mov eax, dword [ebp - 0x240]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], ebx
jne 0x10009c8c
mov eax, dword [ebp - 0x250]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
je 0x10009c8c
push eax
lea ecx, [ebp - 0x240]
call fcn.10001dd7
mov eax, dword [ebp - 0x240]
cmp dword [eax - 0xc], ebx
je 0x10009d25
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.100154e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [0x100370c0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [ebp - 0x240]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x218]
push eax
call fcn.100016e9
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.100013fc
cmp dword [ebp - 0x248], 0xffffffff
je 0x10009dc8
xor edi, edi
jmp 0x10009d6a
push ebx
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x23c]
push dword [ebp - 0x244]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x238]
lea eax, [ebp - 0x23c]
push eax
push esi
push dword [ebp - 0x244]
mov dword [ebp - 0x23c], ebx
push dword [ebp - 0x24c]
mov dword [ebp - 0x238], ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp dword [ebp - 0x23c], ebx
jne 0x10009d44
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jne 0x10009dbe
mov eax, dword [ebp - 0x250]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x238], ebx
jmp 0x10009dc8
mov dword [ebp - 0x238], 1
push dword [ebp - 0x244]
call fcn.10018240
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ecx
push dword [ebp - 0x254]
call esi
push dword [ebp - 0x24c]
call esi
mov esi, dword [ebp - 0x238]
jmp 0x10009be1