Function at 0x41a4c2
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x44e8
call fcn.00464040
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x3000
lea eax, [ebp - 0x4494]
mov edi, ecx
push 0
push eax
call fcn.00447370
add esp, 0xc
mov edx, 0x474468
call fcn.00407aa7
mov ebx, eax
call fcn.00449fee
mov dword [edi + 0x24], eax
test ebx, ebx
jne 0x41a568
cmp dword [ebp + 8], ebx
je 0x41a529
mov ecx, dword [edi]
mov edx, 0x46e2db
push str.Cannot_connect_to_Remote
push 0x46e2d7
call fcn.0041bd3f
pop ecx
pop ecx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
call esi
mov ecx, dword [edi]
mov edx, 0x46e2e3
push str.attempting_to_reconnect
push 0x46e2df
call fcn.0041bd3f
push edi
push 0
push 0x41a428
call fcn.0044b34c
add esp, 0x14
push 0x1388
call esi
jmp 0x41a957
push 0x44
lea eax, [ebp - 0x44dc]
push 0
push eax
call fcn.00447370
lea eax, [edi + 4]
mov word [ebp - 0x44dc], 0xfe44
push eax
push 0x20
pop edx
lea ecx, [ebp - 0x44d8]
mov byte [ebp - 0x44da], 1
call fcn.004014cb
add esp, 0x10
lea eax, [ebp - 0x44dc]
push 0
push 0x44
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
push 0x1388
xor esi, esi
lea eax, [ebp - 0x1494]
push esi
push eax
call fcn.00447370
add esp, 0xc
mov dword [ebp - 0x44e0], 0xff0304
mov cl, byte [ebp - 0x1494]
movzx eax, cl
cmp esi, eax
jl 0x41a5e1
test cl, cl
jne 0x41a619
push 0
mov eax, 0x1388
sub eax, esi
push eax
lea eax, [ebp - 0x1494]
add eax, esi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x44e8], eax
call fcn.00449fee
mov dword [edi + 0x24], eax
mov eax, dword [ebp - 0x44e8]
test eax, eax
jle 0x41a914
add esi, eax
mov cl, byte [ebp - 0x1494]
movzx eax, cl
cmp esi, eax
jl 0x41a89f
test cl, cl
je 0x41a89f
mov al, byte [ebp - 0x1493]
cmp al, 0xff
je 0x41a8f5
cmp al, 3
jne 0x41a669
cmp byte [ebp - 0x1491], 0
mov dword [ebp - 0x44e4], 0x304
jne 0x41a6a9
push 0
push 4
lea eax, [ebp - 0x44e4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp byte [ebp - 0x1493], 2
jne 0x41a6a9
push 0
push 4
lea eax, [ebp - 0x44e0]
mov byte [ebp - 0x44dd], 0xd
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp + 8], 0
jne 0x41a6a9
mov ecx, dword [edi]
mov edx, 0x46e2ef
push str.connection_established
push 0x46e2ee
call fcn.0041bd3f
pop ecx
pop ecx
cmp byte [ebp - 0x1493], 0x13
jne 0x41a744
movzx eax, byte [ebp - 0x1491]
lea edx, [ebp - 0x447c]
mov cl, byte [ebp - 0x1490]
imul eax, eax, 0x30
add eax, edx
push eax
call fcn.00407626
push eax
cmp cl, 2
mov edx, 0x474500
mov eax, 0x4744fc
cmovbe eax, edx
push eax
push 0x474504
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00401599
movzx eax, byte [ebp - 0x1491]
lea edx, [ebp - 0x4494]
imul ecx, eax, 0x30
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x447c]
add eax, ecx
add edx, ecx
mov ecx, dword [edi]
push eax
call fcn.0041bd3f
movzx eax, byte [ebp - 0x1491]
lea ecx, [ebp - 0x4494]
imul eax, eax, 0x30
push 0x30
push 0
add eax, ecx
push eax
call fcn.00447370
add esp, 0x2c
cmp byte [ebp - 0x1493], 0x12
jne 0x41a7e7
lea eax, [ebp - 0x1478]
push eax
movzx eax, byte [ebp - 0x1491]
lea ecx, [ebp - 0x4494]
imul eax, eax, 0x30
push 0x18
pop edx
add ecx, eax
call fcn.004014cb
lea eax, [ebp - 0x1490]
push eax
movzx eax, byte [ebp - 0x1491]
lea ecx, [ebp - 0x447c]
imul eax, eax, 0x30
push 0x18
pop edx
add ecx, eax
call fcn.004014cb
cmp byte [ebp - 0x1492], 0
pop ecx
pop ecx
jne 0x41a7e7
lea eax, [ebp - 0x1490]
push eax
push 0x474510
lea eax, [ebp - 0x8c]
push 0x80
push eax
call fcn.00401599
movzx eax, byte [ebp - 0x1491]
lea edx, [ebp - 0x4494]
imul ecx, eax, 0x30
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x447c]
add eax, ecx
add edx, ecx
mov ecx, dword [edi]
push eax
call fcn.0041bd3f
add esp, 0x18
cmp byte [ebp - 0x1493], 0x14
jne 0x41a855
lea eax, [ebp - 0x1490]
push eax
lea eax, [ebp - 0x10c]
push 0x474524
push eax
call fcn.00401468
movzx eax, byte [ebp - 0x1491]
lea edx, [ebp - 0x4494]
imul ecx, eax, 0x30
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x447c]
add eax, ecx
add edx, ecx
mov ecx, dword [edi]
push eax
call fcn.0041bd3f
lea eax, [ebp - 0x1490]
push eax
movzx eax, byte [ebp - 0x1491]
lea ecx, [ebp - 0x4494]
imul eax, eax, 0x30
push 0x18
pop edx
add ecx, eax
call fcn.004014cb
add esp, 0x18
cmp byte [ebp - 0x1493], 0xb
jne 0x41a89f
cmp byte [ebp - 0x148e], 1
jne 0x41a89f
movzx eax, byte [ebp - 0x1490]
lea edx, [ebp - 0x4494]
imul ecx, eax, 0x30
add edx, ecx
cmp byte [edx], 0
je 0x41a89f
movzx eax, byte [ebp - 0x148d]
lea eax, [ebp + eax - 0x148c]
push eax
lea eax, [ebp - 0x447c]
add eax, ecx
mov ecx, dword [edi]
push eax
call fcn.0041bd3f
pop ecx
pop ecx
movzx ecx, byte [ebp - 0x1494]
test ecx, ecx
je 0x41a5d0
test esi, esi
jle 0x41a5d0
mov eax, 0x1388
sub esi, ecx
sub eax, ecx
push eax
lea eax, [ebp - 0x1494]
add eax, ecx
push eax
lea eax, [ebp - 0x1494]
push eax
call fcn.004489d0
mov eax, 0x1388
sub eax, esi
push eax
lea eax, [ebp - 0x1494]
add eax, esi
push 0
push eax
call fcn.00447370
add esp, 0x18
jmp 0x41a5d0
mov ecx, dword [edi]
mov edx, 0x46e2eb
push str.Error_connecting_to_server
push 0x46e2ea
call fcn.0041bd3f
pop ecx
pop ecx
push 0x1388
jmp 0x41a931
mov ecx, dword [edi]
mov edx, 0x46e2e7
push str.lost_connection_to_Remote
push 0x46e2e6
call fcn.0041bd3f
pop ecx
pop ecx
push 0x2710
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
push edi
push 0
push 0x41a428
call fcn.0044b34c
add esp, 0xc
push 0x1388
call esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445b7e
leave
ret 4