Function at 0x401410
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x42c6e0
push 0x40c730
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x10e0
call fcn.00416bf0
mov eax, dword [0x42e008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x10bc], 0
mov byte [ebp - 0x880], 0
push 0x3ff
push 0
lea eax, [ebp - 0x87f]
push eax
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 0x480], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x47f]
push ecx
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 0xc80], 0
push 0x3ff
push 0
lea edx, [ebp - 0xc7f]
push edx
call fcn.0040fa30
add esp, 0xc
mov byte [ebp - 0x80], 0
push 0x63
push 0
lea eax, [ebp - 0x7f]
push eax
call fcn.0040fa30
add esp, 0xc
mov dword [ebp - 0x109c], 0
mov dword [ebp - 4], 0
mov ecx, 0x10
mov esi, str.GET__ic.asp_HTTP_1.1_r_nHost:1111.ip138.com_r_nConnection:_close_r_n_r_n
lea edi, [ebp - 0x1080]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0x3bf
push 0
lea ecx, [ebp - 0x103f]
push ecx
call fcn.0040fa30
add esp, 0xc
push str.1111.ip138.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10c0], eax
cmp dword [ebp - 0x10c0], 0
je 0x40165a
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x10c0]
mov edx, dword [ecx + 0xc]
mov eax, dword [eax + edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov dword [ebp - 0x10d0], eax
mov edx, 2
mov word [ebp - 0x1090], dx
push 0x50
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x108e], ax
mov eax, dword [ebp - 0x10d0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x108c], eax
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x10ac], eax
cmp dword [ebp - 0x10ac], 0xffffffff
je 0x40165a
push 0x10
lea ecx, [ebp - 0x1090]
push ecx
mov edx, dword [ebp - 0x10ac]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40164d
lea eax, [ebp - 0x1080]
mov dword [ebp - 0x10a8], eax
mov ecx, dword [ebp - 0x10a8]
add ecx, 1
mov dword [ebp - 0x10c4], ecx
mov edx, dword [ebp - 0x10a8]
mov al, byte [edx]
mov byte [ebp - 0x1095], al
add dword [ebp - 0x10a8], 1
cmp byte [ebp - 0x1095], 0
jne 0x4015c7
mov ecx, dword [ebp - 0x10a8]
sub ecx, dword [ebp - 0x10c4]
mov dword [ebp - 0x10d8], ecx
push 0
mov edx, dword [ebp - 0x10d8]
push edx
lea eax, [ebp - 0x1080]
push eax
mov ecx, dword [ebp - 0x10ac]
push ecx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40164d
push 0
push 0x400
lea edx, [ebp - 0x880]
push edx
mov eax, dword [ebp - 0x10ac]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10e0], eax
cmp dword [ebp - 0x10e0], 0xffffffff
je 0x40164d
mov dword [ebp - 0x10bc], 1
mov ecx, dword [ebp - 0x10ac]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [ebp - 0x880]
mov dword [ebp - 0x10a4], edx
mov eax, dword [ebp - 0x10a4]
add eax, 1
mov dword [ebp - 0x10e8], eax
mov ecx, dword [ebp - 0x10a4]
mov dl, byte [ecx]
mov byte [ebp - 0x1094], dl
add dword [ebp - 0x10a4], 1
cmp byte [ebp - 0x1094], 0
jne 0x401675
mov eax, dword [ebp - 0x10a4]
sub eax, dword [ebp - 0x10e8]
mov dword [ebp - 0x10f0], eax
je 0x401897
cmp dword [ebp - 0x10bc], 0
je 0x401897
push 0xa3ba
lea ecx, [ebp - 0x880]
push ecx
call fcn.00401c60
add esp, 8
mov dword [ebp - 0x109c], eax
cmp dword [ebp - 0x109c], 0
je 0x401897
mov edx, dword [ebp - 0x109c]
push edx
push 0x42b06c
lea eax, [ebp - 0x480]
push eax
call fcn.004096c7
add esp, 0xc
push 0x20
lea ecx, [ebp - 0x880]
push ecx
call fcn.00401c60
add esp, 8
mov dword [ebp - 0x109c], eax
cmp dword [ebp - 0x109c], 0
je 0x401897
mov edx, dword [ebp - 0x109c]
push edx
push 0x42b070
lea eax, [ebp - 0xc80]
push eax
call fcn.004096c7
add esp, 0xc
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x10a0], ecx
mov edx, dword [ebp - 0x10a0]
add edx, 1
mov dword [ebp - 0x10f8], edx
mov eax, dword [ebp - 0x10a0]
mov cl, byte [eax]
mov byte [ebp - 0x1096], cl
add dword [ebp - 0x10a0], 1
cmp byte [ebp - 0x1096], 0
jne 0x401754
mov edx, dword [ebp - 0x10a0]
sub edx, dword [ebp - 0x10f8]
mov dword [ebp - 0x10e4], edx
lea eax, [ebp - 0xc80]
mov dword [ebp - 0x10b0], eax
mov ecx, dword [ebp - 0x10b0]
add ecx, 1
mov dword [ebp - 0x10cc], ecx
mov edx, dword [ebp - 0x10b0]
mov al, byte [edx]
mov byte [ebp - 0x1093], al
add dword [ebp - 0x10b0], 1
cmp byte [ebp - 0x1093], 0
jne 0x40179f
mov ecx, dword [ebp - 0x10b0]
sub ecx, dword [ebp - 0x10cc]
mov dword [ebp - 0x10d4], ecx
mov edx, dword [ebp - 0x10e4]
cmp edx, dword [ebp - 0x10d4]
jbe 0x401897
lea eax, [ebp - 0x480]
mov dword [ebp - 0x10b8], eax
mov ecx, dword [ebp - 0x10b8]
add ecx, 1
mov dword [ebp - 0x10f4], ecx
mov edx, dword [ebp - 0x10b8]
mov al, byte [edx]
mov byte [ebp - 0x1092], al
add dword [ebp - 0x10b8], 1
cmp byte [ebp - 0x1092], 0
jne 0x4017fc
mov ecx, dword [ebp - 0x10b8]
sub ecx, dword [ebp - 0x10f4]
mov dword [ebp - 0x10ec], ecx
lea edx, [ebp - 0xc80]
mov dword [ebp - 0x10b4], edx
mov eax, dword [ebp - 0x10b4]
add eax, 1
mov dword [ebp - 0x10dc], eax
mov ecx, dword [ebp - 0x10b4]
mov dl, byte [ecx]
mov byte [ebp - 0x1091], dl
add dword [ebp - 0x10b4], 1
cmp byte [ebp - 0x1091], 0
jne 0x401847
mov eax, dword [ebp - 0x10b4]
sub eax, dword [ebp - 0x10dc]
mov dword [ebp - 0x10c8], eax
mov ecx, dword [ebp - 0x10ec]
sub ecx, dword [ebp - 0x10c8]
push ecx
lea edx, [ebp - 0x480]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040a960
add esp, 0xc
mov dword [ebp - 4], 0xfffffffe
jmp 0x4018b0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00409240
mov esp, ebp
pop ebp
ret