Function at 0x10022000
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e832
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x344c
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
mov dword [esp + 0x20], ecx
push esi
push edi
mov dword [esp + 0x3454], eax
xor eax, eax
mov byte [esp + 0x1440], 0
mov ecx, 0x400
lea edi, [esp + 0x1441]
rep stosd dword es:[edi], eax
mov byte [esp + 0x438], al
mov ecx, 0x400
lea edi, [esp + 0x439]
rep stosd dword es:[edi], eax
mov byte [esp + 0x2448], al
mov ecx, 0x400
lea edi, [esp + 0x2449]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push 0x10050c04
push eax
call fcn.10036fe0
add esp, 8
inc eax
lea edx, [esp + 0x438]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10022096
lea ecx, [esp + 0x438]
push 0x10050c04
push ecx
call fcn.10036fe0
xor edi, edi
add esp, 8
cmp eax, edi
je 0x1002225d
mov byte [eax], 0
mov eax, dword [ebp + 8]
sub eax, 2
je 0x100220fc
dec eax
jne 0x1002225d
cmp dword [0x1005ff8c], edi
je 0x1002225d
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x438]
push edx
push eax
push ecx
push str.gopher:___s:_d_s
lea edx, [esp + 0x2458]
push edx
jmp 0x10022125
cmp dword [0x1005ff88], edi
je 0x1002225d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x438]
push eax
push ecx
push edx
push str.ftp:___s:_d_s
lea eax, [esp + 0x2458]
push eax
call fcn.10036e11
add esp, 0x14
push str.GET
lea ecx, [esp + 0x18]
call fcn.100047c0
lea ecx, [esp + 0x2448]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x3470], edi
call fcn.1000d420
push 0x10050c04
push eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x347c], 1
call fcn.1000d420
add esp, 0x18
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x3464], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10022196
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x3464], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100221bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push edi
push edi
push edi
push 1
push edi
call dword [sym.imp.WININET.dll_InternetOpenA]
push edi
push 0x8000000
push edi
mov ebx, eax
push edi
lea eax, [esp + 0x2458]
push eax
push ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
mov dword [esp + 0x20], esi
jne 0x10022282
xor eax, eax
mov byte [esp + 0x38], 0
mov ecx, 0xff
lea edi, [esp + 0x39]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x3c]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x400
call dword [sym.imp.WININET.dll_InternetGetLastResponseInfoA]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x3464], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002225d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
mov ecx, dword [esp + 0x345c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3454]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x1448]
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jle 0x10022400
mov ebx, dword [ebp + 0x1c]
lea ebx, [ebx]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100223fc
mov edi, dword [esp + 0x28]
push eax
lea edx, [esp + 0x1444]
mov byte [esp + eax + 0x1444], 0
mov eax, dword [ebp + 0x10]
push edx
push eax
mov ecx, edi
call fcn.10017640
test eax, eax
je 0x100223fc
mov ecx, dword [esp + 0x10]
push 1
push ecx
push ebx
call fcn.1000b5f0
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
add esp, 0xc
test eax, eax
jle 0x100223db
call fcn.10045d33
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1444]
push ecx
mov ecx, edi
mov byte [esp + 0x346c], 5
call fcn.10020a10
test eax, eax
mov edi, dword [esp + 0x1c]
je 0x10022348
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [esp + 0x14]
call fcn.10003080
mov eax, dword [esp + 0xc]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.10008e60
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov dword [esp + 0x38], esp
push str.OTHERS
mov byte [esp + 0x3470], 6
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push 0x10050713
mov byte [esp + 0x3474], 7
call fcn.100047c0
push ebx
mov ecx, 0x1005ed60
mov byte [esp + 0x3474], 5
call fcn.1000cbb0
push 0
push 0x10050713
lea ecx, [esp + 0x14]
call fcn.10002bf0
lea eax, [edi - 0x10]
mov byte [esp + 0x3464], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x100223d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x1448]
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jg 0x100222b0
mov ebx, dword [esp + 0x24]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x3464], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x10022435
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x1002225f