Function at 0x408a20
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x670
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x10], esp
lea ecx, [ebx + 0xc]
push eax
push ecx
xor esi, esi
push str.run__s__d
push 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
call fcn.0040d050
mov eax, dword [ebx + 8]
or edi, 0xffffffff
add esp, 0x10
cmp eax, edi
jne 0x408a76
mov ecx, ebx
call fcn.004093d0
mov eax, dword [ebx + 4]
mov edx, dword [0x4333ac]
push edx
mov ecx, dword [eax + 0x414]
mov edx, dword [eax + 0x41c]
push ecx
push edx
push str.atrf_d__d_int_d
push 2
call fcn.0040d050
mov eax, dword [0x4333ac]
add esp, 0x14
cmp eax, esi
je 0x408aba
cmp dword [0x4325a4], esi
je 0x408aba
cmp dword [0x4325a0], esi
jne 0x408bb4
mov eax, dword [ebx + 4]
cmp dword [eax + 0x41c], esi
je 0x408ad9
cmp dword [eax + 0x414], esi
jne 0x408ad9
cmp dword [eax + 0x418], esi
je 0x408bb4
mov eax, dword [ebx + 0x108]
mov dword [ebp - 4], esi
cmp eax, edi
jne 0x408b39
push str.conectara_1
push 2
call fcn.0040d050
mov eax, dword [ebx + 4]
add esp, 8
cmp dword [eax + 0x410], 0x3e8
jl 0x408b1b
cmp dword [eax + 0x418], esi
jne 0x408b1b
mov eax, dword [0x4346d8]
mov ecx, dword [0x4346d4]
push eax
push ecx
jmp 0x408b23
mov edx, dword [0x4346d4]
push esi
push edx
push 0x4347a4
push 0x434740
push 0x4346dc
mov ecx, ebx
call fcn.00409e50
mov dword [ebp - 0x14], 1
mov dword [0x4325a0], 1
mov dword [0x4325a4], esi
jmp 0x408ba2
push str.pasa_normal
push 2
mov dword [ebp - 4], edi
call fcn.0040d050
add esp, 8
push str.marcara
push 2
call fcn.0040d050
mov eax, dword [ebp - 0x14]
add esp, 8
cmp eax, esi
mov dword [0x4325a0], esi
mov dword [0x4325a4], esi
jne 0x408cd5
cmp dword [0x4333ac], esi
je 0x408cd5
push str.int_esp
push 2
call fcn.0040d050
push esi
call fcn.00404990
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00404870
mov dword [ebx + 8], eax
mov ecx, dword [0x4346d8]
mov edx, dword [0x4346d4]
push ecx
push edx
push 0x4347a4
push 0x434740
push 0x4346dc
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.00409e50
jmp 0x408cbd
push str.conecto_por_espejo
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040d050
add esp, 8
xor esi, esi
mov ecx, ebx
call fcn.0040aef0
call fcn.00404a00
cmp dword [ebp - 0x14], esi
jne 0x409329
cmp dword [0x4333ac], esi
je 0x409329
mov ecx, dword [ebx + 0x108]
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
lea eax, [ebp - 0x14]
push 4
push eax
push 0x1006
push 0xffff
push ecx
mov dword [ebp - 0x14], 0x7530
call edi
cmp eax, 0xffffffff
je 0x408d3a
mov eax, dword [ebx + 0x108]
lea edx, [ebp - 0x14]
push 4
push edx
push 0x1005
push 0xffff
push eax
call edi
push str.iuiiu
push 2
call fcn.0040d050
mov edi, 0xa
mov dword [ebp - 4], 6
push edi
push str.__reading__d_bytes_n
push edi
push 0x4333b0
call fcn.00405690
add esp, 0x18
test edi, edi
jle 0x408e0e
mov edx, dword [ebx + 0x108]
push 0
lea ecx, [ebp + esi - 0x678]
push edi
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x408dca
push 0x4325fc
lea ecx, [ebp - 0x3c]
call fcn.0040b8d0
lea eax, [ebp - 0x3c]
push 0x4289b0
push eax
call fcn.00418ed4
mov ecx, dword [ebp - 0x18]
call fcn.00408930
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040b8d0
lea edx, [ebp - 0x5c]
push 0x4289b0
push edx
call fcn.00418ed4
cmp eax, 0xffffffff
jne 0x408e05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x4333b0
call fcn.00405690
add esp, 0x10
lea ecx, [ebp - 0x7c]
push 0x4325fc
call fcn.0040b8d0
lea ecx, [ebp - 0x7c]
push 0x4289b0
push ecx
call fcn.00418ed4
sub edi, eax
add esi, eax
jmp 0x408d66
push 3
lea edx, [ebp - 0x678]
push 0x42bba4
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0041daf0
add esp, 0xc
test eax, eax
je 0x408e51
mov ecx, ebx
call fcn.00408930
push 0x4325fc
lea ecx, [ebp - 0x24]
call fcn.0040b8d0
lea eax, [ebp - 0x24]
push 0x4289b0
push eax
call fcn.00418ed4
push str.leyo_los_10
push 2
call fcn.0040d050
mov ecx, dword [ebp - 0x673]
mov edx, dword [0x433b68]
mov al, byte [0x433b6c]
mov dword [ebp - 0x676], ecx
lea ecx, [ebp - 0x664]
push 0x3c
push ecx
push 0x42bb94
mov dword [ebp - 0x66e], edx
mov byte [ebp - 0x66a], al
mov byte [ebp - 0x667], 0x43
mov byte [ebp - 0x666], 7
call fcn.0040de40
lea edi, [ebp - 0x664]
or ecx, 0xffffffff
xor eax, eax
push 0x50
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [ebp + ecx - 0x664]
push edx
call fcn.004157d0
mov eax, dword [0x433b68]
mov cl, byte [0x433b6c]
mov dword [ebp - 0x60a], eax
mov byte [ebp - 0x606], cl
mov edi, 0x42bb90
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x600]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x603], 0x53
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [ebp - 0x602], 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push str.enviara_512_de_peticion
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
mov byte [ebp - 0x678], 0xf
call fcn.0040d050
add esp, 0x24
lea ecx, [ebp - 0x678]
push 0x200
push ecx
mov ecx, ebx
call fcn.0040b4f0
lea edx, [ebp - 0x678]
push 0x200
push edx
mov ecx, ebx
mov dword [ebp - 4], 8
call fcn.0040b060
push str.paso_lectura_de_resp
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040d050
mov eax, dword [ebp - 0x675]
add esp, 8
cmp eax, 0xf878
jne 0x40927d
push str.llego_marca_de_conectar_a_secundario
push 2
call fcn.0040d050
lea edi, [ebp - 0x54c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x290]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x3a
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x290]
push ecx
call fcn.00418920
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x408fdc
push str.no_:
push 2
call fcn.0040d050
add esp, 8
call fcn.00404870
mov dword [ebx + 8], eax
jmp 0x409025
lea edx, [esi + 1]
push edx
call fcn.004188fb
mov dword [ebx + 8], eax
lea edi, [ebp - 0x290]
or ecx, 0xffffffff
xor eax, eax
mov byte [esi], 0
lea edx, [ebx + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
push ecx
push edx
push str.host_s_port_d
push 2
call fcn.0040d050
add esp, 0x14
mov eax, dword [ebx + 0x108]
mov edx, dword [ebp - 0x66e]
or esi, 0xffffffff
mov dword [ebp - 0x290], edx
cmp eax, esi
je 0x40906f
push str.desconectara
push 2
call fcn.0040d050
mov eax, dword [ebx + 0x108]
add esp, 8
push 2
push eax
call dword [sym.imp.WSOCK32.dll_shutdown]
mov ecx, dword [ebx + 0x108]
push ecx
call dword [sym.imp.WSOCK32.dll_closesocket]
mov dword [ebx + 0x108], esi
push str._conectara
push 2
call fcn.0040d050
mov edx, dword [0x4346d8]
mov eax, dword [0x4346d4]
add esp, 8
mov ecx, ebx
push edx
push eax
push 0x4347a4
push 0x434740
push 0x4346dc
call fcn.00409e50
push str.conecto
push 2
call fcn.0040d050
add esp, 8
mov ecx, ebx
call fcn.0040aef0
mov edi, 0xa
xor esi, esi
push edi
push str.__reading__d_bytes_n
push edi
push 0x4333b0
mov dword [ebp - 4], edi
call fcn.00405690
add esp, 0x10
test edi, edi
jle 0x409151
mov edx, dword [ebx + 0x108]
push 0
lea ecx, [ebp + esi - 0x678]
push edi
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jne 0x409110
push 0x4325fc
lea ecx, [ebp - 0x6c]
call fcn.0040b8d0
lea eax, [ebp - 0x6c]
push 0x4289b0
push eax
call fcn.00418ed4
cmp eax, 0xffffffff
jne 0x40914b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x4333b0
call fcn.00405690
add esp, 0x10
lea ecx, [ebp - 0x2c]
push 0x4325fc
call fcn.0040b8d0
lea ecx, [ebp - 0x2c]
push 0x4289b0
push ecx
call fcn.00418ed4
sub edi, eax
add esi, eax
jmp 0x4090d5
push str.leyo_10
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040d050
mov edx, dword [ebp - 0x673]
mov eax, dword [0x433b68]
mov cl, byte [0x433b6c]
mov dword [ebp - 0x676], edx
lea edx, [ebp - 0x664]
push 0x3c
push edx
push 0x42bb94
mov dword [ebp - 0x66e], eax
mov byte [ebp - 0x66a], cl
mov byte [ebp - 0x667], 0x43
mov byte [ebp - 0x666], 7
call fcn.0040de40
lea edi, [ebp - 0x664]
or ecx, 0xffffffff
xor eax, eax
push 0x50
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ebp + ecx - 0x664]
push eax
call fcn.004157d0
mov ecx, dword [0x433b68]
mov edi, 0x42bb90
mov dword [ebp - 0x60a], ecx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov dl, byte [0x433b6c]
mov byte [ebp - 0x603], 0x53
not ecx
sub edi, ecx
mov byte [ebp - 0x606], dl
lea edx, [ebp - 0x600]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
mov byte [ebp - 0x602], 1
lea edx, [ebp - 0x678]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x200
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x290]
mov byte [ebp - 0x678], 0x11
mov dword [ebp - 0x672], ecx
mov ecx, ebx
call fcn.0040b4f0
push str.envio_opc17
push 2
call fcn.0040d050
add esp, 8
lea eax, [ebp - 0x678]
mov ecx, ebx
mov dword [ebp - 4], 0xc
push 0x200
push eax
call fcn.0040b060
push str.leyo_respuesta
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040d050
add esp, 8
cmp dword [ebp - 0x675], 0xf876
je 0x409322
push str.no_llego_la_marca
push 2
call fcn.0040d050
add esp, 8
mov ecx, ebx
call fcn.00408930
push str.no_conecto_serv
lea ecx, [ebp - 0x54]
call fcn.0040b8d0
lea edx, [ebp - 0x54]
push 0x4289b0
push edx
call fcn.00418ed4
push str.no_llego_los512_con_la_marca
push 2
call fcn.0040d050
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x34]
push edx
call fcn.0040b8d0
lea eax, [ebp - 0x34]
push 0x4289b0
push eax
call fcn.00418ed4
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push ecx
push edx
push str.Error_reading_opc_esp:__s_n
push 0
push 0x4333b0
call fcn.00405690
mov eax, dword [esi + 4]
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.0040b8d0
lea ecx, [ebp - 0x44]
push 0x4289b0
push ecx
call fcn.00418ed4
mov ecx, ebx
call fcn.00408800
push str.loc1t
push 2
call fcn.0040d050
add esp, 8
mov ecx, ebx
call fcn.00406dd0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret