Function at 0x10001ef0
Capabilities:
Create http request
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 ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004fa6a
mov eax, dword fs:[0]
push eax
mov eax, 0x2840
call fcn.1002d110
mov eax, dword [0x1006a264]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x283c], eax
mov dword [ebp - 0x2838], ecx
test eax, eax
je 0x100022cf
test ecx, ecx
je 0x100022cf
mov dword [ebp - 0x281c], 0
xor edi, edi
mov dword [ebp - 0x2818], 1
mov dword [ebp - 0x2814], 3
nop dword [eax]
nop word [eax + eax]
mov ax, word [0x1005501c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x2834], xmm0
mov word [ebp - 0x282c], ax
movq xmm0, qword [0x10055014]
mov al, byte [0x1005501e]
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0
mov dword [ebp - 0x2824], 0xb
mov dword [ebp - 0x2820], 0xf
movq qword [ebp - 0x2834], xmm0
mov byte [ebp - 0x282a], al
mov byte [ebp - 0x2829], 0
mov dword [ebp - 4], 0
mov eax, 0x1006a22c
cmp dword [0x1006a240], 0x10
lea ecx, [ebp - 0x2834]
push dword [0x1006a23c]
cmovae eax, dword [0x1006a22c]
push eax
call fcn.10010690
push 4
push 0x10055020
lea ecx, [ebp - 0x2834]
call fcn.10010690
cmp dword [0x1006a240], 0x10
mov eax, 0x1006a22c
push 0
cmovae eax, dword [0x1006a22c]
push 0
push 0
push dword [ebp + edi*4 - 0x281c]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
mov dword [ebp - 0x2840], esi
test esi, esi
je 0x10002277
push 4
lea eax, [ebp - 0x2848]
mov dword [ebp - 0x2848], 0x1388
push eax
push 2
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [ebp - 0x2820], 0x10
lea eax, [ebp - 0x2834]
push 0
cmovae eax, dword [ebp - 0x2834]
push 0x80ff9200
push dword [ebp - 0x2824]
push eax
push dword [ebp - 0x283c]
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
jne 0x100020a3
push dword [ebp - 0x2840]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
inc edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2820]
cmp ecx, 0x10
jb 0x100020e5
mov edx, dword [ebp - 0x2834]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100020db
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100022ee
push ecx
push edx
call fcn.1002cb9b
add esp, 8
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0xf
mov byte [ebp - 0x2834], 0
test esi, esi
jne 0x10002112
cmp edi, 3
jl 0x10001f70
jmp 0x100022cf
push 0
lea eax, [ebp - 0x284c]
mov dword [ebp - 0x2844], 0
push eax
lea eax, [ebp - 0x2844]
mov dword [ebp - 0x284c], 4
push eax
push 0x13
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, 0x10055028
lea eax, [ebp - 0x2844]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10002170
test dl, dl
je 0x1000216c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10002170
add eax, 2
add ecx, 2
test dl, dl
jne 0x10002150
xor eax, eax
jmp 0x10002175
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10002262
push eax
push 0x80
push 2
push eax
push eax
push 0x10000000
push dword [ebp - 0x2838]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002262
push 0x2800
lea eax, [ebp - 0x2810]
push 0
push eax
call fcn.1002e790
add esp, 0xc
mov dword [ebp - 0x2838], 0
lea eax, [ebp - 0x2838]
mov dword [ebp - 0x283c], 0
push eax
push 0x2800
lea eax, [ebp - 0x2810]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2838]
test eax, eax
je 0x10002241
push 0
lea ecx, [ebp - 0x283c]
push ecx
push eax
lea eax, [ebp - 0x2810]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x2838]
mov dword [ebp - 0x2838], 0
push eax
push 0x2800
lea eax, [ebp - 0x2810]
mov dword [ebp - 0x283c], 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x2838]
test eax, eax
jne 0x100021f1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x2840]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x100022d1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0x2840]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100022cf
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2820]
cmp ecx, 0x10
jb 0x100022b4
mov edx, dword [ebp - 0x2834]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100022aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100022ee
push ecx
push edx
call fcn.1002cb9b
add esp, 8
mov dword [ebp - 0x2824], 0
mov dword [ebp - 0x2820], 0xf
mov byte [ebp - 0x2834], 0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002cba9
mov esp, ebp
pop ebp
ret 8
call fcn.10031a6f
int3