Function at 0x10074db0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc9c
push ebx
push esi
push edi
lea edi, [ebp - 0x8dc]
mov ecx, 0x237
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1017002c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x101744d7
call fcn.1006b4e9
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0x24]
push eax
movzx ecx, word [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1006b773
add esp, 0xc
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jge 0x10074e16
xor eax, eax
jmp 0x10074fea
cmp dword [ebp + 0x18], 0
je 0x10074eba
mov dword [ebp - 0x8d8], 0x80
mov esi, esp
lea eax, [ebp - 0x8d8]
push eax
lea ecx, [ebp - 0x8cc]
push ecx
mov edx, dword [ebp - 0x814]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.1006a512
test eax, eax
jge 0x10074e61
push str.getsockname
call fcn.10068f19
add esp, 4
jmp 0x10074eba
mov esi, esp
push 0xa
push 0
push 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 0x8d8]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
cmp esi, esp
call fcn.1006a512
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0
je 0x10074eba
mov eax, dword [ebp - 0x820]
push eax
push str.getnameinfo___failed_:__d_n
push 2
call fcn.10069d01
add esp, 4
push eax
call fcn.1006a4fe
add esp, 0xc
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x20]
push edx
mov eax, dword [ebp + 0x10]
push eax
push str.GET__s_HTTP__s_r_nHost:__s:_d_r_nConnection:_Close_r_nUser_Agent:_Shareaza_2.7__UPnP_1.1__MiniUPnPc_2.2.4_r_n_r_n
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.10068a2d
add esp, 0x1c
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0x800
jb 0x10074f13
mov esi, esp
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.1006a512
xor eax, eax
jmp 0x10074fea
mov dword [ebp - 0x838], 0
mov eax, dword [ebp - 0x838]
cmp eax, dword [ebp - 0x82c]
jge 0x10074fb1
mov esi, esp
push 0
mov eax, dword [ebp - 0x82c]
sub eax, dword [ebp - 0x838]
push eax
mov ecx, dword [ebp - 0x838]
lea edx, [ebp + ecx - 0x808]
push edx
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, esp
call fcn.1006a512
mov dword [ebp - 0x820], eax
cmp dword [ebp - 0x820], 0
jge 0x10074f9a
push str.send
call fcn.10068f19
add esp, 4
mov esi, esp
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.1006a512
xor eax, eax
jmp 0x10074fea
mov eax, dword [ebp - 0x838]
add eax, dword [ebp - 0x820]
mov dword [ebp - 0x838], eax
jmp 0x10074f1d
mov eax, dword [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x814]
push edx
call sym.MiniUPnPc.dll_getHTTPResponse
add esp, 0xc
mov dword [ebp - 0x844], eax
mov esi, esp
mov eax, dword [ebp - 0x814]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp esi, esp
call fcn.1006a512
mov eax, dword [ebp - 0x844]
push edx
mov ecx, ebp
push eax
lea edx, [0x1007501c]
call fcn.10069f6d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069676
add esp, 0xc9c
cmp ebp, esp
call fcn.1006a512
mov esp, ebp
pop ebp
ret