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

Disassembly:
push ebp
lea ebp, [esp - 0x36c]
sub esp, 0x36c
push 0xffffffffffffffff
push 0x101369c8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1017455c]
xor eax, ebp
mov dword [ebp + 0x368], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x378]
mov edi, dword [ebp + 0x374]
mov esi, dword [ebp + 0x37c]
mov ebx, dword [ebp + 0x380]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x384]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp + 0x388]
mov dword [ebp - 0x30], eax
xor eax, eax
lea edx, [ebp]
push edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
call fcn.1009a6d0
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x240], ebx
mov dword [ebp + 0x248], eax
mov dword [ebp + 0x23c], eax
mov dword [ebp + 0x354], eax
cmp dword [0x10197614], eax
je 0x1009a189
push str._ERA__InitMwPRoxyDb
push eax
call fcn.10053700
add esp, 8
mov esi, dword [ebp - 0x1c]
mov edx, esi
lea ecx, [ebp - 0x28]
call section..text
test eax, eax
jne 0x1009a1b9
cmp dword [0x10197614], eax
je 0x1009a695
push str._ERA__InitMwPRoxyDb_ret_false
push eax
call fcn.10053700
add esp, 8
jmp 0x1009a695
test edi, edi
je 0x1009a1f8
cmp byte [edi], 0
je 0x1009a1f8
push 0
push edi
call fcn.1004dcf0
add esp, 8
test eax, eax
je 0x1009a1f8
cmp dword [0x10197614], 0
je 0x1009a1ea
push edi
push str._ERA__GetHostId__Host:_s___IP:_s_
push 0
call fcn.10053700
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push esi
lea eax, [ebp - 0x14]
push eax
push ecx
push edi
xor ecx, ecx
jmp 0x1009a224
cmp dword [0x10197614], 0
je 0x1009a215
mov edx, dword [ebp - 0x24]
push edx
push edi
push str._ERA__GetHostId__Host:_s___IP:_s_
push 0
call fcn.10053700
add esp, 0x10
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x24]
push esi
lea eax, [ebp - 0x14]
push eax
push ecx
push edx
mov ecx, edi
mov esi, dword [ebp - 0x28]
push esi
lea edx, [ebp + 0x34]
call fcn.100011b0
cmp dword [0x10197614], 0
mov edi, eax
je 0x1009a267
lea eax, [ebp + 0x34]
push eax
push edi
push str._ERA__GetHostId_ret:__d__RemID:__s_
push 0
call fcn.10053700
add esp, 0x10
cmp dword [0x10197614], 0
je 0x1009a267
push str._ERA__DeInitDB
push 0
call fcn.10053700
add esp, 8
push 1
mov eax, esi
call fcn.10106850
add esp, 4
test edi, edi
je 0x1009a678
cmp dword [ebp - 0x14], 0
je 0x1009a678
cmp dword [0x10197614], 0
mov dword [ebp - 0x14], 0
je 0x1009a2a4
push str._ERA__InitDLLs
push 0
call fcn.10053700
add esp, 8
call fcn.10099f10
cmp dword [0x10197614], 0
je 0x1009a2c1
push str._ERA__socket
push 0
call fcn.10053700
add esp, 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, 0xffffffff
jne 0x1009a31d
cmp dword [0x10197614], 0
je 0x1009a2f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._ERA__Failed_to_create_socket__WSAGetLastError___:__d
push 0
call fcn.10053700
add esp, 0xc
cmp dword [ebp - 0x1c], 0
je 0x1009a60e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x1c]
push eax
push str.Failed_to_create_socket__WSAGetLastError___:__d
push ecx
call fcn.1010d6a8
add esp, 0xc
jmp 0x1009a60e
mov edx, 2
push 0x1fa2
mov word [ebp + 0x358], dx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp + 0x35a], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [0x10197614], 0
mov dword [ebp + 0x35c], eax
je 0x1009a364
push str._ERA__connSocket_to_127.0.0.1
push 0
call fcn.10053700
add esp, 8
push 0x10
lea eax, [ebp + 0x358]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jge 0x1009a3a5
cmp dword [0x10197614], 0
je 0x1009a390
push str._ERA__Error_connecting_to_the_MWPRoxy_server__WSAGetLastError___:__d
push 0
call fcn.10053700
add esp, 8
mov esi, dword [ebp - 0x1c]
push str.Error_connecting_to_the_MWPRoxy_server__WSAGetLastError___:__d
call fcn.10099a90
add esp, 4
jmp 0x1009a60e
cmp dword [0x10197614], 0
je 0x1009a3bd
push str._ERA__setsockopt
push 0
call fcn.10053700
add esp, 8
push 4
lea ecx, [ebp - 0x3c]
push ecx
push 1
push 6
push ebx
mov dword [ebp - 0x3c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 1
cmp dword [0x10197614], 0
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
je 0x1009a3fc
push str._ERA__recv
push 0
call fcn.10053700
add esp, 8
test esi, esi
je 0x1009a4e6
mov eax, str.dumm
mov ecx, esi
call fcn.10031940
test eax, eax
jne 0x1009a4e6
lea edx, [ebp - 0x20]
push edx
push str.ESRATimeout
mov ecx, str.SoftwareMicroWorld
mov edx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 4
call fcn.10031670
mov eax, dword [ebp - 0x20]
push eax
push ebx
call fcn.10099fc0
add esp, 8
cmp eax, 0xffffffff
jne 0x1009a48d
cmp dword [0x10197614], 0
je 0x1009a468
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._ERA__Socket_Error__WSAGetLastError___:__d
push 0
call fcn.10053700
add esp, 0xc
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1009a484
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Socket_Error__WSAGetLastError___:__d
push esi
call fcn.1010d6a8
add esp, 0xc
mov byte [ebp - 4], 0
jmp 0x1009a60e
test eax, eax
jne 0x1009a4cd
cmp dword [0x10197614], eax
je 0x1009a4ab
mov ecx, dword [ebp - 0x20]
push ecx
push str._ERA__Socket_Not_Readable_within__d_secs
push eax
call fcn.10053700
add esp, 0xc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1009a484
mov edx, dword [ebp - 0x20]
push edx
push str.Socket_Not_Readable_within__d_secs
push eax
call fcn.1010d6a8
add esp, 0xc
mov byte [ebp - 4], 0
jmp 0x1009a60e
cmp dword [0x10197614], 0
je 0x1009a4e6
push eax
push str._ERA__Socket_Readable:_rs___d
push 0
call fcn.10053700
add esp, 0xc
push 0
mov esi, 1
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [0x10197614], 0
mov edi, eax
je 0x1009a518
lea ecx, [ebp - 0x18]
push ecx
push edi
push str._ERA__bytes_recv___d__cmd___s
push 0
call fcn.10053700
add esp, 0x10
test edi, edi
jg 0x1009a562
cmp dword [0x10197614], 0
je 0x1009a53c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str._ERA__Number_of_bytes_received__d__WSAGetLastError___:__d
push 0
call fcn.10053700
add esp, 0x10
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x1009a559
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Number_of_bytes_received__d__WSAGetLastError___:__d
push esi
call fcn.1010d6a8
add esp, 0x10
mov byte [ebp - 4], 0
jmp 0x1009a60e
cmp dword [0x10197614], 0
je 0x1009a57a
push str._ERA__ProcessCommand
push 0
call fcn.10053700
add esp, 8
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push ecx
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
push edx
mov dl, byte [ebp - 0x18]
push ebx
call fcn.1009a780
test eax, eax
jne 0x1009a5b6
cmp dword [0x10197614], eax
je 0x1009a5b0
push str._ERA__ProcessCommand_returns_FALSE
push eax
call fcn.10053700
add esp, 8
mov byte [ebp - 4], 0
jmp 0x1009a60e
cmp dword [ebp - 0x34], esi
jne 0x1009a5dc
cmp dword [0x10197614], 0
je 0x1009a5d3
push str._ERA__ProcessCommand_returns_TRUE_with_AckRecv__TRUE
push 0
call fcn.10053700
add esp, 8
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 0
jmp 0x1009a60e
mov dword [ebp - 4], 0
jmp 0x1009a3d5
cmp dword [0x10197614], 0
je 0x1009a626
push str._ERA__closesocket
push 0
call fcn.10053700
add esp, 8
cmp ebx, 0xffffffff
je 0x1009a632
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp dword [0x10197614], 0
je 0x1009a64e
mov eax, dword [ebp - 0x14]
push eax
push str._ERA__returns_rVal___d
push 0
call fcn.10053700
add esp, 0xc
mov eax, dword [ebp + 0x248]
test eax, eax
je 0x1009a66b
push eax
call fcn.1010f263
add esp, 4
mov dword [ebp + 0x248], 0
lea esi, [ebp]
call fcn.1009a730
mov eax, dword [ebp - 0x14]
jmp 0x1009a69f
cmp dword [0x10197614], 0
je 0x1009a695
mov ecx, dword [ebp - 0x14]
push ecx
push edi
push str._ERA__rVal___d__RecFound___d
push 0
call fcn.10053700
add esp, 0x10
lea esi, [ebp]
call fcn.1009a730
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x368]
xor ecx, ebp
call fcn.1010d699
add ebp, 0x36c
mov esp, ebp
pop ebp
ret 0x18