Function at 0x4e7330
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x50
mov eax, dword [0x5bafe0]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
push ebp
xor edx, edx
push edi
mov edi, dword [esp + 0x5c]
mov ebp, dword [edi]
mov dword [eax], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
cmp dword [edi + ecx*4 + 0x270], edx
je 0x4e7384
pop edi
mov dword [eax], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0052b755
add esp, 0x50
ret
push ebx
push esi
call fcn.004e3d20
mov esi, eax
mov eax, dword [ebp + 0x1e0]
mov ebx, edx
xor ecx, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x10], 0x493e0
test eax, eax
jle 0x4e73b0
mov ecx, 1
mov edx, dword [ebp + 0x1e4]
test edx, edx
jle 0x4e73bd
or ecx, 2
dec ecx
je 0x4e73d0
dec ecx
je 0x4e73ca
dec ecx
jne 0x4e73d4
cmp eax, edx
jl 0x4e73d0
mov dword [esp + 0x10], edx
jmp 0x4e73d4
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x534]
mov ecx, dword [ebp + 0x530]
push eax
push ecx
push ebx
push esi
call fcn.004e3d50
add esp, 0x10
sub dword [esp + 0x10], eax
je 0x4e73f9
cmp dword [esp + 0x10], 0
jge 0x4e741f
push str.Connection_time_out
push ebp
call fcn.004e4210
add esp, 8
pop esi
pop ebx
pop edi
mov eax, 0x1c
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0052b755
add esp, 0x50
ret
xor ebx, ebx
jmp 0x4e7430
mov eax, dword [edi + ebx*4 + 0x15c]
cmp eax, 0xffffffff
je 0x4e75a3
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004d9420
add esp, 0x10
test eax, eax
jne 0x4e74e2
mov edx, dword [edi + 0x2b4]
mov eax, dword [edi + 0x2b0]
mov ecx, dword [esp + 0x24]
mov esi, dword [edi + 0x2bc]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.004e3d50
add esp, 0x10
cmp eax, esi
jl 0x4e7498
push esi
push str.After__ldms_connect_time__move_on__n
push ebp
call fcn.004e4180
add esp, 0xc
mov dword [esp + 0x18], 0x274c
test ebx, ebx
jne 0x4e752b
cmp dword [edi + 0x54], ebx
jne 0x4e752b
mov eax, dword [edi + 0x2b4]
mov ecx, dword [edi + 0x2b0]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call fcn.004e3d50
add esp, 0x10
cmp eax, 0xc8
jl 0x4e752b
mov ecx, dword [esp + 0x14]
push 1
push ecx
push edi
call fcn.004e7270
add esp, 0xc
jmp 0x4e752b
cmp eax, 2
jne 0x4e7513
mov edx, dword [edi + ebx*4 + 0x15c]
push edx
lea esi, [esp + 0x1c]
call fcn.004e6850
add esp, 4
test eax, eax
jne 0x4e75ee
push str.Connection_failed_n
push ebp
call fcn.004e4180
add esp, 8
jmp 0x4e752b
test al, 4
je 0x4e752b
mov eax, dword [edi + ebx*4 + 0x15c]
push eax
lea esi, [esp + 0x1c]
call fcn.004e6850
add esp, 4
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4e75a3
push esi
mov dword [ebp + 0x85fc], esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x50]
test eax, eax
je 0x4e75a3
push 0x2e
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.004dab20
push esi
push edi
call fcn.004e9aa0
mov edx, dword [edi + 0xb0]
push eax
push edx
lea eax, [esp + 0x48]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push ebp
call fcn.004e4180
mov ecx, dword [edi + ebx*4 + 0x50]
mov eax, dword [esp + 0x38]
add esp, 0x28
cmp dword [ecx + 0x1c], 0
je 0x4e758a
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x14]
push ebx
push edx
push edi
mov dword [edi + 0x2bc], eax
call fcn.004e7270
add esp, 0xc
mov dword [esp + 0x1c], eax
inc ebx
cmp ebx, 2
jl 0x4e7430
cmp dword [esp + 0x1c], 0
je 0x4e76ca
cmp dword [edi + 0x54], 0
jne 0x4e75d6
mov eax, dword [esp + 0x14]
push 1
push eax
push edi
call fcn.004e7270
add esp, 0xc
test eax, eax
je 0x4e768d
cmp dword [edi + 0x254], 0
je 0x4e76a2
mov esi, dword [edi + 0xa8]
jmp 0x4e76a8
mov eax, dword [edi + ebx*4 + 0x15c]
mov ecx, dword [esp + 0x14]
mov dword [edi + ecx*4 + 0x154], eax
mov edx, dword [edi + ebx*4 + 0x50]
mov esi, ebx
xor esi, 1
mov dword [edi + 0x4c], edx
mov dword [edi + ebx*4 + 0x15c], 0xffffffff
mov eax, dword [edi + esi*4 + 0x15c]
cmp eax, 0xffffffff
je 0x4e7638
push eax
push edi
call fcn.004e6d50
add esp, 8
mov dword [edi + esi*4 + 0x15c], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
push edi
call fcn.004dbc30
add esp, 8
test eax, eax
jne 0x4e76ce
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov dword [edi + esi*4 + 0x270], 1
mov dword [ecx], 1
test esi, esi
jne 0x4e7676
push 4
push ebp
call fcn.004ec650
add esp, 8
mov edx, dword [edi + esi*4 + 0x154]
push edx
push edi
call fcn.004e6990
push edi
call fcn.004dbcc0
add esp, 0xc
pop esi
pop ebx
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0052b755
add esp, 0x50
ret
mov esi, dword [edi + 0x98]
mov ecx, dword [esp + 0x18]
push ecx
push edi
call fcn.004e9aa0
mov edx, dword [edi + 0xb0]
push eax
push edx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push ebp
call fcn.004e4210
add esp, 0x1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x5c]
pop esi
pop ebx
pop edi
pop ebp
xor ecx, esp
call fcn.0052b755
add esp, 0x50
ret