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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fbc0
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 edi, edi
push str.run__s__d
push 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.0040c720
mov eax, dword [ebx + 8]
or esi, 0xffffffff
add esp, 0x10
cmp eax, esi
jne 0x4083d6
mov ecx, ebx
call fcn.0040b160
mov eax, dword [ebx + 4]
mov edx, dword [0x42f664]
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.0040c720
mov eax, dword [ebx + 4]
add esp, 0x14
cmp dword [eax + 0x41c], edi
je 0x40841c
cmp dword [eax + 0x414], edi
jne 0x40841c
cmp dword [eax + 0x418], edi
je 0x4084e5
mov eax, dword [ebx + 0x108]
mov dword [ebp - 4], edi
cmp eax, esi
jne 0x40847c
push str.conectara_1
push 2
call fcn.0040c720
mov eax, dword [ebx + 4]
add esp, 8
cmp dword [eax + 0x410], 0x3e8
jl 0x40845e
cmp dword [eax + 0x418], edi
jne 0x40845e
mov eax, dword [0x430980]
mov ecx, dword [0x43097c]
push eax
push ecx
jmp 0x408466
mov edx, dword [0x43097c]
push edi
push edx
push 0x430a4c
push 0x4309e8
push 0x430984
mov ecx, ebx
call fcn.004096e0
mov dword [ebp - 0x14], 1
jmp 0x4084d3
push str.pasa_normal
push 2
mov dword [ebp - 4], esi
call fcn.0040c720
add esp, 8
push str.marcara
push 2
call fcn.0040c720
mov eax, dword [ebp - 0x14]
add esp, 8
test eax, eax
jne 0x4085f9
mov eax, dword [0x42f664]
test eax, eax
je 0x4085f9
push str.int_esp
push 2
call fcn.0040c720
push 0
call fcn.00404990
mov edi, eax
mov ecx, esi
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 [0x430980]
mov edx, dword [0x43097c]
push ecx
push edx
push 0x430a4c
push 0x4309e8
push 0x430984
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004096e0
jmp 0x4085e3
push str.conecto_por_espejo
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040c720
add esp, 8
mov ecx, ebx
call fcn.0040a780
call fcn.00404a00
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x408c52
mov eax, dword [0x42f664]
test eax, eax
je 0x408c52
mov ecx, dword [ebx + 0x108]
mov esi, 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 esi
cmp eax, 0xffffffff
je 0x408661
mov eax, dword [ebx + 0x108]
lea edx, [ebp - 0x14]
push 4
push edx
push 0x1005
push 0xffff
push eax
call esi
push str.iuiiu
push 2
call fcn.0040c720
mov edi, 0xa
mov dword [ebp - 4], 6
push edi
push str.__reading__d_bytes_n
push edi
push 0x42f668
xor esi, esi
call fcn.00405580
add esp, 0x18
test edi, edi
jle 0x408737
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 0x4086f3
push 0x42eb08
lea ecx, [ebp - 0x3c]
call fcn.0040b170
lea eax, [ebp - 0x3c]
push 0x4259b0
push eax
call fcn.00416244
mov ecx, dword [ebp - 0x18]
call fcn.00408290
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 4]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0040b170
lea edx, [ebp - 0x5c]
push 0x4259b0
push edx
call fcn.00416244
cmp eax, 0xffffffff
jne 0x40872e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x42f668
call fcn.00405580
add esp, 0x10
lea ecx, [ebp - 0x7c]
push 0x42eb08
call fcn.0040b170
lea ecx, [ebp - 0x7c]
push 0x4259b0
push ecx
call fcn.00416244
sub edi, eax
add esi, eax
jmp 0x40868f
push 3
lea edx, [ebp - 0x678]
push 0x428b30
push edx
mov dword [ebp - 4], 0xffffffff
call fcn.0041ae30
add esp, 0xc
test eax, eax
je 0x40877a
mov ecx, ebx
call fcn.00408290
push 0x42eb08
lea ecx, [ebp - 0x24]
call fcn.0040b170
lea eax, [ebp - 0x24]
push 0x4259b0
push eax
call fcn.00416244
push str.leyo_los_10
push 2
call fcn.0040c720
mov ecx, dword [ebp - 0x673]
mov edx, dword [0x42fe20]
mov al, byte [0x42fe24]
mov dword [ebp - 0x676], ecx
lea ecx, [ebp - 0x664]
push 0x3c
push ecx
push 0x428b20
mov dword [ebp - 0x66e], edx
mov byte [ebp - 0x66a], al
mov byte [ebp - 0x667], 0x43
mov byte [ebp - 0x666], 7
call fcn.0040d260
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.00413540
mov eax, dword [0x42fe20]
mov cl, byte [0x42fe24]
mov dword [ebp - 0x60a], eax
mov byte [ebp - 0x606], cl
mov edi, 0x428b1c
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.0040c720
add esp, 0x24
lea ecx, [ebp - 0x678]
push 0x200
push ecx
mov ecx, ebx
call fcn.0040ad80
lea edx, [ebp - 0x678]
push 0x200
push edx
mov ecx, ebx
mov dword [ebp - 4], 8
call fcn.0040a8f0
push str.paso_lectura_de_resp
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040c720
mov eax, dword [ebp - 0x675]
add esp, 8
cmp eax, 0xf878
jne 0x408ba6
push str.llego_marca_de_conectar_a_secundario
push 2
call fcn.0040c720
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.00415c90
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x408905
push str.no_:
push 2
call fcn.0040c720
add esp, 8
call fcn.00404870
mov dword [ebx + 8], eax
jmp 0x40894e
lea edx, [esi + 1]
push edx
call fcn.00415c6b
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.0040c720
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 0x408998
push str.desconectara
push 2
call fcn.0040c720
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.0040c720
mov edx, dword [0x430980]
mov eax, dword [0x43097c]
add esp, 8
mov ecx, ebx
push edx
push eax
push 0x430a4c
push 0x4309e8
push 0x430984
call fcn.004096e0
push str.conecto
push 2
call fcn.0040c720
add esp, 8
mov ecx, ebx
call fcn.0040a780
mov edi, 0xa
xor esi, esi
push edi
push str.__reading__d_bytes_n
push edi
push 0x42f668
mov dword [ebp - 4], edi
call fcn.00405580
add esp, 0x10
test edi, edi
jle 0x408a7a
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 0x408a39
push 0x42eb08
lea ecx, [ebp - 0x6c]
call fcn.0040b170
lea eax, [ebp - 0x6c]
push 0x4259b0
push eax
call fcn.00416244
cmp eax, 0xffffffff
jne 0x408a74
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Socket_error_while_reading__d_n
push 1
push 0x42f668
call fcn.00405580
add esp, 0x10
lea ecx, [ebp - 0x2c]
push 0x42eb08
call fcn.0040b170
lea ecx, [ebp - 0x2c]
push 0x4259b0
push ecx
call fcn.00416244
sub edi, eax
add esi, eax
jmp 0x4089fe
push str.leyo_10
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040c720
mov edx, dword [ebp - 0x673]
mov eax, dword [0x42fe20]
mov cl, byte [0x42fe24]
mov dword [ebp - 0x676], edx
lea edx, [ebp - 0x664]
push 0x3c
push edx
push 0x428b20
mov dword [ebp - 0x66e], eax
mov byte [ebp - 0x66a], cl
mov byte [ebp - 0x667], 0x43
mov byte [ebp - 0x666], 7
call fcn.0040d260
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.00413540
mov ecx, dword [0x42fe20]
mov edi, 0x428b1c
mov dword [ebp - 0x60a], ecx
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov dl, byte [0x42fe24]
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.0040ad80
push str.envio_opc17
push 2
call fcn.0040c720
add esp, 8
lea eax, [ebp - 0x678]
mov ecx, ebx
mov dword [ebp - 4], 0xc
push 0x200
push eax
call fcn.0040a8f0
push str.leyo_respuesta
push 2
mov dword [ebp - 4], 0xffffffff
call fcn.0040c720
add esp, 8
cmp dword [ebp - 0x675], 0xf876
je 0x408c4b
push str.no_llego_la_marca
push 2
call fcn.0040c720
add esp, 8
mov ecx, ebx
call fcn.00408290
push str.no_conecto_serv
lea ecx, [ebp - 0x54]
call fcn.0040b170
lea edx, [ebp - 0x54]
push 0x4259b0
push edx
call fcn.00416244
push str.no_llego_los512_con_la_marca
push 2
call fcn.0040c720
mov ecx, dword [ebp - 0x1c]
add esp, 8
mov edx, dword [ecx + 4]
lea ecx, [ebp - 0x34]
push edx
call fcn.0040b170
lea eax, [ebp - 0x34]
push 0x4259b0
push eax
call fcn.00416244
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 0x42f668
call fcn.00405580
mov eax, dword [esi + 4]
add esp, 0x14
lea ecx, [ebp - 0x44]
push eax
call fcn.0040b170
lea ecx, [ebp - 0x44]
push 0x4259b0
push ecx
call fcn.00416244
mov ecx, ebx
call fcn.00408160
push str.loc1t
push 2
call fcn.0040c720
add esp, 8
mov ecx, ebx
call fcn.00406c70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret