Function at 0x4cd5b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6d8
mov eax, dword [0x5552b0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x6c0], eax
cmp dword [eax + 0x40], 0
push edi
jne 0x4cd5eb
mov eax, 0x100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x6bc]
push eax
push 0x202
mov dword [ebp - 0x6d0], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0xaa]
push edx
mov word [ebp - 0xac], cx
call fcn.004e8ba0
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [eax + 0x40]
add esp, 0xc
add ecx, 0x40
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4cd633
sub eax, esi
je 0x4cd8ac
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push ecx
call ebx
cmp eax, 0xffffffff
jne 0x4cd68d
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ecx + 0x40]
add edx, 0x40
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4cd6c2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [eax + 0x40]
add ecx, 0x40
push 0x20
push ecx
call fcn.004e6da9
add esp, 0xc
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push 0x10
mov dword [ebp - 0x6c8], eax
call fcn.004e5379
add esp, 4
test eax, eax
je 0x4cd735
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov esi, eax
jmp 0x4cd737
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
mov dword [ebp - 0x26], ecx
mov dword [ebp - 0x22], ecx
mov dword [ebp - 0x1e], ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
push 0xa
lea ecx, [ebp - 0x28]
push ecx
xor edx, edx
push eax
mov word [ebp - 0x28], dx
call fcn.004e534f
add esp, 0xc
push str.fnSendRequestToNetMulti
lea edx, [ebp - 0x28]
mov ecx, str.gethostbyname
call fcn.004a3f00
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov edx, dword [ebp - 0x6c0]
mov eax, 0x100
mov dword [edx + 0x8c], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov eax, 2
mov word [esi], ax
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ecx + 0x40]
add edx, 0x40
push edx
mov edi, 0x10
call ebx
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [eax + 0x40]
movzx edx, word [ecx + 0xc0]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov ecx, dword [ebp - 0x6c0]
mov ebx, dword [ecx + 0x40]
lea eax, [ebp - 0xac]
push eax
add ebx, 0x40
call fcn.004b76c0
add esp, 4
push 0
push str.connect
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a3520
add esp, 0xc
push 4
lea edx, [ebp - 0xac]
push str.172.
push edx
call fcn.004e5007
add esp, 0xc
test eax, eax
je 0x4cd82a
push 3
lea eax, [ebp - 0xac]
push 0x54c6b4
push eax
call fcn.004e5007
add esp, 0xc
test eax, eax
je 0x4cd976
push 1
lea ecx, [ebp - 0xac]
push str.192.168.
push ecx
call fcn.004e5007
add esp, 0xc
test eax, eax
je 0x4cd976
push str.accept_RealIP
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a3a40
add esp, 8
jmp 0x4cd976
lea edx, [ebp - 0xa4]
push 0x51d1f4
push edx
call fcn.004e571a
add esp, 8
test eax, eax
je 0x4cd976
lea edx, [ebp - 0xa4]
xor ecx, ecx
sub eax, edx
sar eax, 1
push eax
mov eax, edx
mov word [ebp - 0x18], cx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov dword [ebp - 0xe], ecx
mov word [ebp - 0xa], cx
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.004e5481
lea edx, [ebp - 0x18]
add esp, 0xc
push edx
call fcn.004e517a
add esp, 4
cmp eax, 0x10
jl 0x4cd88d
cmp eax, 0x1f
jle 0x4cd976
push str.accept_RealIP
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a3a40
add esp, 8
jmp 0x4cd976
push 6
push 1
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
push 0x1c
mov dword [ebp - 0x6c8], eax
call fcn.004e5379
add esp, 4
test eax, eax
je 0x4cd8e6
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov esi, eax
jmp 0x4cd8e8
xor esi, esi
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov eax, 0x17
mov word [esi], ax
mov edx, dword [ebp - 0x6c0]
mov eax, dword [edx + 0x40]
lea ecx, [esi + 8]
push ecx
add eax, 0x60
push eax
push 0x17
mov edi, 0x1c
call dword [0x5682fc]
mov ecx, dword [ebp - 0x6c0]
mov edx, dword [ecx + 0x40]
movzx eax, word [edx + 0xc0]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov edx, dword [ebp - 0x6c0]
mov ebx, dword [edx + 0x40]
lea ecx, [ebp - 0xac]
push ecx
add ebx, 0x60
call fcn.004b76c0
add esp, 4
push 0
push str.connect
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a3520
add esp, 0xc
mov eax, dword [ebp - 0x6c8]
push edi
push esi
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0x6cc], eax
cmp eax, 0xffffffff
jne 0x4cd9ac
mov ecx, dword [ebp - 0x6c0]
mov eax, 0x100
mov dword [ebp - 0x6d0], eax
mov dword [ecx + 0x8c], eax
jmp 0x4cdf15
lea edx, [ebp - 0x6c0]
push edx
call dword [0x5662f8]
mov eax, dword [ebp - 0x6c0]
movzx eax, word [eax + 4]
cdq
add esp, 4
push 0x568300
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
push esi
push 0
push 0x406ba91
push 0
push 0x2d7da4
call fcn.004cc3f0
mov ecx, dword [ebp - 0x6c0]
mov dword [ecx + 0xf8], eax
mov eax, dword [ebp - 0x6c0]
add esp, 0x18
lea ecx, [ebp - 0x18]
push ecx
mov dword [eax + 0xfc], edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x18]
movzx ecx, word [ebp - 0x10]
lea edx, [eax + eax*4]
movzx eax, word [ebp - 0x16]
lea eax, [eax + edx*2]
movzx edx, word [ebp - 0x12]
imul eax, eax, 0x64
add eax, ecx
add eax, edx
cdq
push edx
push eax
push 0
push 0x1d5534f
push 0
push 0x36e31c
call fcn.004cc3f0
mov ecx, dword [ebp - 0x6c0]
mov dword [ecx + 0x100], eax
mov eax, dword [ebp - 0x6c0]
add esp, 0x18
push 0x568300
mov dword [eax + 0x104], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x6c0]
cmp dword [eax + 0x18], 0
jbe 0x4cdb5a
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004e5420
mov edx, dword [ebp - 0x6c0]
mov ebx, eax
mov eax, dword [edx + 0x10]
add esp, 4
push eax
push 0
push ebx
call fcn.004e8ba0
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [eax + 0x14]
add esp, 0xc
push ecx
push eax
push ebx
call fcn.004ebc70
mov eax, dword [ebp - 0x6c0]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x20]
add esp, 0xc
push edx
mov edx, dword [eax + 0x14]
push ecx
add edx, ebx
push edx
call fcn.004ebc70
mov eax, dword [ebp - 0x6c0]
mov esi, dword [eax + 0x10]
add esi, esi
add esp, 0xc
push esi
mov dword [ebp - 0x6c4], esi
call fcn.004e5420
add esp, 4
push esi
mov edi, eax
push 0
push edi
mov dword [ebp - 0x6d4], edi
call fcn.004e8ba0
mov ecx, dword [ebp - 0x6c0]
mov ecx, dword [ecx + 0x10]
lea edx, [ebp - 0x6c4]
add esp, 0xc
push edx
sub ecx, 0x1c
lea eax, [ebx + 0x1c]
lea edx, [edi + 0x1c]
call fcn.004deff0
mov eax, dword [ebp - 0x6c4]
add esp, 4
add eax, 0x1c
push 0
mov ecx, 7
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x6d4]
push eax
mov dword [ebp - 0x6c4], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x6c8]
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
push esi
mov edi, eax
call fcn.004e577a
add esp, 4
jmp 0x4cdbd1
mov esi, dword [eax + 0x10]
add esi, esi
push esi
mov dword [ebp - 0x6c4], esi
call fcn.004e5420
add esp, 4
push esi
mov ebx, eax
push 0
push ebx
call fcn.004e8ba0
mov eax, dword [ebp - 0x6c0]
mov ecx, dword [eax + 0x10]
lea edx, [ebp - 0x6c4]
add esp, 0xc
push edx
sub ecx, 0x1c
add eax, 0x1c
lea edx, [ebx + 0x1c]
call fcn.004deff0
mov eax, dword [ebp - 0x6c4]
mov esi, dword [ebp - 0x6c0]
add esp, 4
add eax, 0x1c
push 0
push eax
mov ecx, 7
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x6c4], eax
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x6c8]
push ebx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
push ebx
call fcn.004e577a
mov ebx, dword [ebp - 0x6c4]
add esp, 4
cmp edi, ebx
jae 0x4cdc2e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
push 0x7e
push ecx
lea edx, [ebp - 0x12a]
push edx
mov esi, eax
mov word [ebp - 0x12c], cx
call fcn.004e8ba0
add esp, 0xc
push ebx
push edi
push esi
lea eax, [ebp - 0x12c]
push str.Error:_i_Send:_i_Total:_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push str.Send_Error
lea edx, [ebp - 0x12c]
jmp 0x4cdc37
push 0
push str.send
xor edx, edx
push str.Network
lea ecx, [ebp - 0xac]
call fcn.004a3520
xor ebx, ebx
add esp, 0xc
cmp edi, ebx
jle 0x4cdf15
mov eax, dword [ebp - 0x6c0]
cmp dword [eax + 0x50], ebx
je 0x4cdf15
mov dword [eax + 0x50], ebx
xor edi, edi
mov ecx, dword [ebp - 0x6c0]
mov dword [ebp - 0x6c4], 0x1388
mov eax, dword [ecx + 0x34]
cmp eax, 0x392
jne 0x4cdc96
mov edx, dword [0x55665c]
imul edx, edx, 0x3e8
mov dword [ebp - 0x6c4], edx
jmp 0x4cdcd4
cmp eax, 0x620
jne 0x4cdca9
mov dword [ebp - 0x6c4], 0x3a98
jmp 0x4cdcd4
cmp eax, 0x306
jne 0x4cdcbc
mov dword [ebp - 0x6c4], 0x2710
jmp 0x4cdcd4
cmp eax, 0x30a
je 0x4cdcca
cmp eax, 0x815
jne 0x4cdcd4
mov dword [ebp - 0x6c4], 0xea60
mov esi, dword [ebp - 0x6c8]
push 4
lea eax, [ebp - 0x6c4]
push eax
push 0x1006
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0
push 0x400
lea ecx, [ebp - 0x52c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x4cdee0
test edi, edi
jne 0x4cdd73
cmp esi, 0x28
jbe 0x4cdc68
mov ecx, 0x502548
lea edx, [ebp - 0x52c]
call fcn.0047b140
test eax, eax
jne 0x4cdc68
mov eax, dword [ebp - 0x518]
add eax, dword [ebp - 0x514]
cmp eax, 0xffffffff
je 0x4cdc68
mov ecx, dword [ebp - 0x51c]
push ecx
call fcn.004e5420
add esp, 4
push esi
lea edx, [ebp - 0x52c]
mov ebx, eax
push edx
push ebx
call fcn.004ebc70
add esp, 0xc
mov edi, esi
jmp 0x4cdd89
push esi
lea eax, [ebp - 0x52c]
push eax
lea ecx, [edi + ebx]
push ecx
call fcn.004ebc70
add esp, 0xc
add edi, esi
test edi, edi
je 0x4cdc68
cmp dword [ebx + 0x10], edi
jne 0x4cdc68
cmp dword [ebx + 0x8c], 0x4000
jne 0x4cde50
mov ecx, dword [ebp - 0x6c0]
xor eax, eax
mov dword [ecx + 0xb8], eax
mov dword [ecx + 0xbc], eax
mov dword [ecx + 0xc0], eax
mov dword [ecx + 0xc4], eax
mov dword [ecx + 0xc8], eax
mov dword [ecx + 0xcc], eax
mov dword [ecx + 0xd0], eax
mov dword [ecx + 0xd4], eax
mov ecx, dword [ebp - 0x6c0]
mov dword [ecx + 0xd8], eax
mov dword [ecx + 0xdc], eax
mov dword [ecx + 0xe0], eax
mov dword [ecx + 0xe4], eax
mov dword [ecx + 0xe8], eax
mov dword [ecx + 0xec], eax
mov dword [ecx + 0xf0], eax
mov dword [ecx + 0xf4], eax
mov edi, dword [ebp - 0x6c0]
add edi, 0xb8
lea esi, [ebx + 0xb8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x6c0]
add edi, 0xd8
lea esi, [ebx + 0xd8]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x8c]
mov edx, dword [ebp - 0x6c0]
mov dword [edx + 0x8c], ecx
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebp - 0x6c0]
mov dword [ecx + 0x30], eax
mov edx, dword [ebx + 0x34]
mov eax, dword [ebp - 0x6c0]
mov dword [eax + 0x34], edx
cmp dword [ebx + 0x18], 0
jbe 0x4cdefc
mov ecx, dword [ebx + 0x14]
lea edx, [ebp - 0x6c0]
add ecx, ebx
push edx
mov dword [ebx + 0x20], ecx
call dword [0x566310]
mov eax, dword [ebx + 0x18]
add esp, 4
push eax
lea ecx, [ebp - 0x6c0]
push ecx
call dword [0x56630c]
mov edx, dword [ebx + 0x18]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp - 0x6c0]
push edx
mov edx, dword [ecx + 0x20]
push eax
push edx
call fcn.004ebc70
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x6c0]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 0x6c0]
mov edx, dword [eax + 0x14]
add esp, 0x14
add edx, dword [ebx + 0x18]
mov dword [eax + 0x10], edx
jmp 0x4cdf0c
mov edx, dword [ebp - 0x6c0]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x6c0]
mov dword [eax + 0x34], 1
jmp 0x4cdf15
lea eax, [ebp - 0x6c0]
push eax
call dword [0x566310]
add esp, 4
push ebx
call fcn.004e577a
add esp, 4
mov ecx, dword [ebp - 0x6c8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
push str.close
push str.Network
xor edx, edx
lea ecx, [ebp - 0xac]
call fcn.004a3520
add esp, 0xc
cmp dword [ebp - 0x6cc], 0xffffffff
jne 0x4cdfaa
mov eax, dword [ebp - 0x6c0]
cmp dword [eax + 0x40], 0
je 0x4cdfaa
mov edx, dword [eax + 0x40]
mov esi, dword [edx + 0xc4]
test esi, esi
je 0x4cdfaa
lea eax, [ebp - 0x6c0]
push eax
call dword [0x5662f8]
mov ecx, dword [ebp - 0x6c0]
add esp, 4
push 0x3e8
mov dword [ecx + 0x40], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp - 0x6c0]
push edx
call fcn.004cd5b0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004e4746
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x6d0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e4746
mov esp, ebp
pop ebp
ret