Function at 0x100031b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
push edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push 0
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
lea edx, [esp + 0x38]
push edx
push 0x101
dec edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push str.gnudb.gnudb.org
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x10003244
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.100060c4
mov esp, ebp
pop ebp
ret
movzx ecx, word [0x100091a4]
mov eax, 2
push ecx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.MSVCR100.dll_memcpy]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push 0x10
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call esi
add eax, 0x200
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp dword [0x10009258], 0
mov ebx, eax
jne 0x100032d9
push str._cddb_cddb.cgi
push str.GET__s_
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x20]
push edx
push ebx
call dword [sym.imp.MSVCR100.dll_strcat]
push 0x1000739c
push ebx
call dword [sym.imp.MSVCR100.dll_strcat]
jmp 0x10003345
mov eax, dword [esp + 0x1c]
push eax
push str.POST__s_HTTP_1.0_r_nContent_Type:_application_x_www_form_urlencoded_r_nUser_Agent:_AKRip090_r_n
push ebx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push ebx
call esi
lea esi, [ebx + eax]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10003303
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x14]
push ecx
add esi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 2
push eax
push str.Content_Length:__d_r_n_r_n
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x20]
push edx
push esi
call dword [sym.imp.MSVCR100.dll_strcat]
push 0x1000739c
push esi
call dword [sym.imp.MSVCR100.dll_strcat]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0x1c
push 0
push ebx
call esi
push eax
mov eax, dword [esp + 0x18]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, dword [esp + 0x20]
push edi
push 0
push esi
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
jmp 0x10003370
cmp edi, 0x80
jl 0x10003399
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push esi
push ecx
call dword [sym.imp.WS2_32.dll_recv]
add dword [esp + 0x18], eax
add esi, eax
sub edi, eax
test eax, eax
js 0x10003399
jne 0x10003370
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x1cc]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100060c4
mov esp, ebp
pop ebp
ret