Function at 0x402f90
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

Disassembly:
push 0xffffffffffffffff
push 0x418155
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x4219cc]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4219cc]
xor eax, esp
push eax
lea eax, [esp + 0x480]
mov dword fs:[0], eax
mov eax, dword [esp + 0x494]
mov ecx, dword [esp + 0x498]
mov edx, dword [esp + 0x49c]
mov ebp, dword [esp + 0x4a0]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x20], ebp
mov ecx, 0x421d38
mov dword [esp + 0x488], 0
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
lea ecx, [esp + 0x18]
mov esi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_310]
test esi, esi
mov byte [esp + 0x488], 1
je 0x40308b
xor eax, eax
mov dword [esp + 0x49], eax
mov dword [esp + 0x4d], eax
mov dword [esp + 0x51], eax
mov dword [esp + 0x55], eax
mov word [esp + 0x59], ax
mov byte [esp + 0x5b], al
mov eax, dword [esi + 0xc]
mov byte [esp + 0x48], 0
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [eax]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esp + 0x48]
mov dword [esp + 0x54], edx
mov eax, dword [eax + 0x10]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], eax
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push 0
push 1
mov ebx, 2
push ebx
call dword [sym.imp.WS2_32.dll_socket]
lea ecx, [esp + 0x18]
mov edi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_876]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x440c
mov dword [esp + 0x40], eax
mov word [esp + 0x3c], bx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x3c]
push edx
push edi
mov word [esp + 0x46], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4030eb
push 0x41bc70
mov ecx, ebp
call dword [sym.imp.MFC80.DLL_Ordinal_784]
jmp 0x4034c5
push str.tjqzservice_uqs______________hnadmin
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0
lea ecx, [esp + 0x18]
mov byte [esp + 0x48c], bl
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
push eax
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_876]
mov ebp, dword [sym.imp.WS2_32.dll_send]
push eax
push edi
call ebp
lea ecx, [esp + 0x14]
mov esi, eax
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
cmp esi, eax
jge 0x40314d
mov ecx, dword [esp + 0x20]
push 0x41bc2c
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4034bb
push 0
push 0x1e
lea eax, [esp + 0x64]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + eax + 0x60], 0
call dword [sym.imp.MFC80.DLL_Ordinal_304]
push 0x41bc28
lea ecx, [esp + 0x20]
mov byte [esp + 0x48c], 3
call dword [sym.imp.MFC80.DLL_Ordinal_1482]
test eax, eax
je 0x4031a7
push 0x41bc14
mov ecx, dword [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4034b1
lea ecx, [esp + 0x490]
call dword [sym.imp.MFC80.DLL_Ordinal_2902]
mov edx, dword [str._UQS:]
mov ebx, eax
mov ax, word [0x41bc10]
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x80], edx
mov word [esp + 0x84], ax
call fcn.00402f50
fld qword [eax]
fstp qword [esp + 0x48]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x490]
mov dword [esp + 0x81], edx
mov dword [esp + 0x85], eax
mov byte [esp + 0x89], bl
call dword [sym.imp.MFC80.DLL_Ordinal_876]
lea edx, [esp + 0x8a]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x403212
xor eax, eax
xor ecx, ecx
test ebx, ebx
jle 0x40324f
jmp 0x403230
mov dl, byte [esp + eax + 0x81]
xor byte [esp + ecx + 0x8a], dl
add eax, 1
cmp eax, 8
jne 0x403248
xor eax, eax
add ecx, 1
cmp ecx, ebx
jl 0x403230
mov al, 0x31
xor byte [esp + 0x81], al
xor byte [esp + 0x82], al
xor byte [esp + 0x83], al
xor byte [esp + 0x84], al
xor byte [esp + 0x85], al
xor byte [esp + 0x86], al
xor byte [esp + 0x87], al
xor byte [esp + 0x88], al
push 0
lea esi, [ebx + 0xe]
push esi
lea eax, [esp + 0x84]
push eax
push edi
call ebp
cmp eax, esi
jge 0x4032a8
push 0x41bbf0
jmp 0x403191
push 0
push 0x400
lea ecx, [esp + 0x84]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
lea ecx, [esp + 0x28]
mov ebx, eax
call dword [sym.imp.MFC80.DLL_Ordinal_310]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_310]
cmp ebx, 5
mov byte [esp + 0x488], 5
jl 0x403487
mov ebp, dword [sym.imp.MSVCR80.dll_strncmp]
push 5
lea edx, [esp + 0x80]
push str._SVR:
push edx
call ebp
add esp, 0xc
test eax, eax
je 0x40331f
push 5
lea eax, [esp + 0x80]
push str._ERR:
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x403487
movzx esi, byte [esp + 0x87]
lea ecx, [esi + 0xd]
cmp ebx, ecx
jl 0x403487
cmp byte [esp + esi + 0x88], 0x21
jne 0x403487
xor eax, eax
xor ecx, ecx
test esi, esi
mov byte [esp + esi + 0x88], 0
jle 0x40336c
mov dl, byte [esp + eax + 0x48]
xor byte [esp + ecx + 0x88], dl
add eax, 1
cmp eax, 8
jne 0x403365
xor eax, eax
add ecx, 1
cmp ecx, esi
jl 0x403350
push 5
lea eax, [esp + 0x80]
push str._ERR:
push eax
call ebp
add esp, 0xc
test eax, eax
jne 0x40339b
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_785]
jmp 0x403496
movzx edx, byte [esp + 0x4c]
xor byte [esp + 0x83], dl
mov dl, byte [esp + 0x84]
xor dl, byte [esp + 0x4d]
mov cl, byte [esp + 0x82]
mov al, byte [esp + 0x81]
xor cl, byte [esp + 0x4b]
xor al, byte [esp + 0x4a]
movzx ebx, byte [esp + 0x4e]
xor byte [esp + 0x85], bl
movzx ebx, byte [esp + 0x4f]
xor byte [esp + 0x86], bl
mov byte [esp + 0x84], dl
movzx edx, dl
push edx
movzx edx, byte [esp + 0x87]
push edx
mov byte [esp + 0x8a], cl
movzx ecx, cl
movzx edx, al
push ecx
push edx
mov byte [esp + 0x91], al
mov eax, dword [esp + 0x3c]
push str._d._d._d._d
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_2322]
movzx ecx, word [esp + 0x9d]
mov edx, dword [esp + 0x4c]
add esp, 0x18
lea eax, [esp + 0x88]
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
push eax
call dword [sym.imp.MFC80.DLL_Ordinal_785]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x490]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
mov al, 1
jmp 0x4034de
mov ecx, dword [esp + 0x20]
push 0x41bbb8
call dword [sym.imp.MFC80.DLL_Ordinal_784]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x28]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x1c]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
lea ecx, [esp + 0x490]
call dword [sym.imp.MFC80.DLL_Ordinal_578]
xor al, al
mov ecx, dword [esp + 0x480]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.00417312
add esp, 0x478
ret