Function at 0x4d4c00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59866e
mov eax, dword fs:[0]
push eax
mov eax, 0x10a0
call fcn.00540100
mov eax, dword [0x5fae30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
mov dword [ebp - 0x10a8], eax
mov dword [ebp - 0x10a4], ecx
mov dword [ebp - 0x1098], edx
test eax, eax
je 0x4d5097
cmp dword [ebp + 0x10], 0
je 0x4d5097
mov byte [ebp - 0x1091], 0
test edi, edi
je 0x4d4c92
cmp dword [edi + 0x10], 0
je 0x4d4c92
cmp word [edi + 0x1c], 0
je 0x4d4c92
mov esi, 0x10
mov byte [ebp - 0x1091], 1
cmp dword [edi + 0x14], esi
jb 0x4d4c9f
mov eax, dword [edi]
jmp 0x4d4ca1
push ebx
call fcn.00404fd4
mov esi, 0x10
jmp 0x4d4cb9
mov eax, edi
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x109c], eax
cmp eax, 0xffffffff
jne 0x4d4cc2
push edi
call fcn.00404fd4
mov dword [ebp - 0x109c], eax
add esp, 4
mov eax, dword [ebp - 0x109c]
test eax, eax
je 0x4d500e
cmp eax, 0xffffffff
je 0x4d500e
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d4d56
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
push eax
lea eax, [ebp - 0x1058]
push eax
call fcn.004080a8
push eax
lea ecx, [ebp - 0x103c]
push str.CSimpleSocket::SendData___failed_to_create_socket_with_error:
push ecx
mov dword [ebp - 4], 2
call fcn.0040367f
push 1
push eax
mov byte [ebp - 4], 3
call fcn.0040880a
add esp, 0x1c
lea ecx, [ebp - 0x103c]
call fcn.0040583f
lea ecx, [ebp - 0x1058]
call fcn.0040583f
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x4d4d4f
mov dword [eax], 0
call edi
jmp 0x4d509c
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 0x10ac]
push edx
push 0x1005
mov eax, 0xfa0
push 0xffff
push ebx
mov dword [ebp - 0x10a0], eax
mov dword [ebp - 0x10ac], eax
call esi
cmp eax, 0xffffffff
je 0x4d4dac
cmp dword [ebp - 0x10a0], 0
je 0x4d4db2
push 4
lea eax, [ebp - 0x10a0]
push eax
push 0x1006
push 0xffff
push ebx
call esi
cmp eax, 0xffffffff
jne 0x4d4db2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor eax, eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], eax
mov dword [ebp - 0x1018], eax
mov dword [ebp - 0x1014], eax
cmp byte [ebp - 0x1091], al
jne 0x4d4dd8
push 0x50
jmp 0x4d4ddd
movzx ecx, word [edi + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x1020]
mov word [ebp - 0x101e], ax
mov eax, dword [ebp - 0x109c]
push ecx
mov edx, 2
push ebx
mov word [ebp - 0x1020], dx
mov dword [ebp - 0x101c], eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4d4e81
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
lea edx, [ebp - 0x103c]
push edx
call fcn.004080a8
push eax
lea eax, [ebp - 0x1058]
push str.CSimpleSocket::SendData___failed_to_connect_to_server_with_error:
push eax
mov dword [ebp - 4], 4
call fcn.0040367f
push 1
push eax
mov byte [ebp - 4], 5
call fcn.0040880a
add esp, 0x1c
lea ecx, [ebp - 0x1058]
call fcn.0040583f
lea ecx, [ebp - 0x103c]
call fcn.0040583f
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x4d4e7a
mov dword [eax], 0
call esi
jmp 0x4d509c
xor edi, edi
jmp 0x4d4e90
mov eax, dword [ebp + 0x10]
lea ecx, [edi + 0x800]
mov esi, 0x800
cmp ecx, eax
jb 0x4d4ea6
mov esi, eax
sub esi, edi
mov edx, dword [ebp - 0x10a8]
push 0
push esi
add edx, edi
push edx
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4d4f5e
add edi, esi
cmp edi, dword [ebp + 0x10]
jne 0x4d4e90
push 0
push 0x1000
lea edx, [ebp - 0x1010]
push edx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp esi, 0xffffffff
jne 0x4d4fcf
lea eax, [ebp - 0x1074]
push edi
push eax
call fcn.004080a8
push eax
lea ecx, [ebp - 0x1090]
push str.CSimpleSocket::SendData___failed_to_receive_data_from_server_with_error:
push ecx
mov dword [ebp - 4], 8
call fcn.0040367f
push 1
push eax
mov byte [ebp - 4], 9
call fcn.0040880a
add esp, 0x1c
lea ecx, [ebp - 0x1090]
call fcn.0040583f
lea ecx, [ebp - 0x1074]
call fcn.0040583f
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x4d5000
push ebx
mov dword [eax], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x4d509c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x103c]
push esi
push eax
call fcn.004080a8
push eax
lea ecx, [ebp - 0x1058]
push str.CSimpleSocket::SendData___failed_to_send_data_to_server_with_error:
push ecx
mov dword [ebp - 4], 6
call fcn.0040367f
push 1
push eax
mov byte [ebp - 4], 7
call fcn.0040880a
add esp, 0x1c
lea ecx, [ebp - 0x1058]
call fcn.0040583f
lea ecx, [ebp - 0x103c]
call fcn.0040583f
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x4d4fc8
mov dword [eax], 0
mov eax, esi
jmp 0x4d509c
mov ecx, dword [ebp - 0x10a4]
test ecx, ecx
je 0x4d5000
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x4d5000
cmp dword [eax], esi
jbe 0x4d5000
push esi
lea edx, [ebp - 0x1010]
push edx
push ecx
call fcn.0053f0e0
mov eax, dword [ebp - 0x1098]
add esp, 0xc
mov dword [eax], esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x4d509c
cmp byte [ebp - 0x1091], 0
jne 0x4d504c
push ebx
lea ecx, [ebp - 0x103c]
push str.CSimpleSocket::SendData___Failed_to_resolve:
push ecx
call fcn.00408a0d
push 1
push eax
mov dword [ebp - 4], 0
call fcn.0040880a
add esp, 0x14
cmp dword [ebp - 0x1028], esi
jb 0x4d5087
mov edx, dword [ebp - 0x103c]
push edx
jmp 0x4d507f
push edi
lea eax, [ebp - 0x103c]
push str.CSimpleSocket::SendData___Failed_to_resolve_proxy:
push eax
call fcn.00408a0d
push 1
push eax
mov dword [ebp - 4], 1
call fcn.0040880a
add esp, 0x14
cmp dword [ebp - 0x1028], esi
jb 0x4d5087
mov ecx, dword [ebp - 0x103c]
push ecx
call fcn.0053ed60
add esp, 4
mov eax, dword [ebp - 0x1098]
test eax, eax
je 0x4d5097
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053fd20
mov esp, ebp
pop ebp
ret