Function at 0x617cf4
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0x12c
mov eax, dword [0x7c0650]
xor eax, ebp
mov dword [ebp + 0x54], eax
push ebx
mov ebx, dword [ebp + 0x64]
push esi
push edi
push dword [ebp + 0x60]
mov edi, dword [ebp + 0x6c]
mov dword [ebp - 0x44], ebx
call fcn.0061513a
mov esi, eax
test esi, esi
pop ecx
jne 0x617d51
push 0x2736
call fcn.00613bfc
mov dword [esp], str.argument_is_not_an_RML_socket
push str.RMLJoinLeaf
push str._s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x10
or eax, 0xffffffff
jmp 0x618063
test edi, edi
je 0x617d62
mov eax, dword [edi + 4]
mov dword [ebp - 0x48], eax
mov eax, dword [edi]
mov dword [ebp - 0x4c], eax
jmp 0x617d6a
and dword [ebp - 0x48], 0
and dword [ebp - 0x4c], 0
push 0x10
lea eax, [esi + 0x754]
push ebx
push eax
call fcn.00646470
add esp, 0xc
or ebx, 0xffffffff
cmp byte [esi + 0x14], 0
jne 0x617db6
mov ax, word [esi + 8]
push 0xe
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x3a]
push 0
push eax
call fcn.006455e0
push 0x10
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 0x60]
call fcn.0061345d
add esp, 0x18
cmp eax, ebx
jne 0x617db6
mov eax, ebx
jmp 0x618063
and dword [ebp - 0x50], 0
mov edi, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0
push dword [esi + 0x6d0]
push dword [esi + 4]
call edi
cmp eax, ebx
jne 0x617e07
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00613bfc
push edi
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLStCli.cpp:186
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
push esi
call fcn.0061618d
add esp, 0x20
jmp 0x617daf
lea eax, [ebp - 0x50]
push eax
push 0x8004667e
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, ebx
jne 0x617e3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00613bfc
push edi
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLStCli.cpp:196
jmp 0x617df0
mov eax, dword [esi + 4]
push 0x10
push dword [ebp - 0x44]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
jne 0x617e84
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
call fcn.00613bfc
push esi
call fcn.005a6cc1
push eax
push str.gh_connect
push str...RMLStCli.cpp:208
push str._s:__s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x1c
jmp 0x617daf
push 0x10
push dword [ebp - 0x44]
lea eax, [esi + 0x24]
push eax
call fcn.00646470
add esp, 0xc
push 3
push dword [esi + 0x6d0]
mov byte [esi + 0x15], 1
push dword [esi + 4]
call edi
cmp eax, ebx
jne 0x617ece
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00613bfc
push edi
call fcn.005a6cc1
push eax
push 0x6bb378
push str...RMLStCli.cpp:226
jmp 0x617df0
cmp dword [0x829438], 0
jne 0x617ef3
push 0xe04d0100
call dword [sym.imp.WS2_32.dll_htonl]
push eax
push esi
call fcn.0061591f
cmp eax, ebx
pop ecx
pop ecx
je 0x617daf
push 2
call fcn.00618e1c
mov edi, eax
mov al, byte [esi + 0x9bc]
mov byte [ebp - 0x3d], al
push 1
lea eax, [ebp - 0x3d]
push eax
push 1
push edi
call fcn.00618f3d
add esp, 0x14
test al, al
jne 0x617f28
push 8
call fcn.00613bfc
mov eax, ebx
jmp 0x618062
lea eax, [ebp - 0xd4]
push 0x10
push eax
call fcn.00618fd1
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x54], eax
jne 0x617f43
push 0x57
jmp 0x617f1c
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.00619071
mov eax, dword [ebp - 0x54]
shl eax, 3
push eax
lea eax, [ebp - 0x2c]
push eax
push 2
push edi
call fcn.00618f3d
add esp, 0x1c
test al, al
je 0x617f1a
cmp dword [ebp - 0x48], 0
je 0x617f87
push dword [ebp - 0x4c]
push dword [ebp - 0x48]
push edi
call fcn.00618ecc
add esp, 0xc
test al, al
je 0x617f1a
push edi
call fcn.00618fc6
pop ecx
push eax
push edi
call fcn.00618fbe
pop ecx
push eax
push dword [ebp - 0x44]
push 1
push dword [esi + 0x614]
push 0
push 0
push esi
call fcn.00614c6b
add esp, 0x20
cmp eax, ebx
je 0x617daf
push edi
call fcn.00618e5d
push 2
pop edi
push edi
push esi
call fcn.006149d4
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x6dc], eax
jmp 0x617fe5
push ebx
push esi
call fcn.00617633
cmp eax, ebx
pop ecx
pop ecx
je 0x61801c
cmp dword [esi + 0x18], edi
je 0x617fd8
mov eax, dword [esi + 0x18]
cmp eax, 0xd
jne 0x618028
push 0x274d
call fcn.00613bfc
mov dword [esp], str.connection_refused
push str.RMLJoinLeaf
push str._s_failed:__s_n
push 0x32
call fcn.005a6bee
add esp, 0x10
jmp 0x617daf
push 0
push esi
call fcn.006149d4
mov eax, ebx
jmp 0x618061
cmp eax, 0xc
jne 0x618040
push 0x2745
call fcn.00613bfc
mov dword [esp], str.connection_aborted
jmp 0x618003
test eax, eax
jne 0x618057
push 0x274c
call fcn.00613bfc
mov dword [esp], str.connection_timed_out
jmp 0x618003
push edi
push esi
call fcn.00613fff
mov eax, dword [ebp + 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x54]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00644f58
add ebp, 0x58
leave
ret