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

Disassembly:
sub esp, 0x5c
mov eax, dword [0x5176f0]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push esi
xor edx, edx
push edi
mov edi, dword [esp + 0x68]
mov esi, dword [edi]
mov dword [eax], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edx
cmp dword [edi + ecx*4 + 0x28c], edx
je 0x48d128
pop edi
mov dword [eax], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
add esp, 0x5c
ret
push ebx
push ebp
call fcn.0048a930
mov ebx, eax
mov eax, dword [esi + 0x1e0]
xor ecx, ecx
mov ebp, edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x10], 0x493e0
mov dword [esp + 0x14], ecx
cmp eax, ecx
jle 0x48d158
mov ecx, 1
mov edx, dword [esi + 0x1e4]
test edx, edx
jle 0x48d165
or ecx, 2
dec ecx
je 0x48d174
dec ecx
je 0x48d172
dec ecx
jne 0x48d17d
cmp eax, edx
jl 0x48d174
mov eax, edx
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x614]
mov ecx, dword [esi + 0x610]
push eax
push ecx
push ebp
push ebx
call fcn.0048a960
mov ecx, dword [esp + 0x20]
add esp, 0x10
sub ecx, eax
mov eax, dword [esp + 0x14]
sbb eax, edx
mov edx, ecx
or edx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
je 0x48d1b9
test eax, eax
jg 0x48d1df
jl 0x48d1b9
test ecx, ecx
jae 0x48d1df
push str.Connection_time_out
push esi
call fcn.0048af30
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 0x1c
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
add esp, 0x5c
ret
xor ebx, ebx
mov eax, dword [edi + ebx*4 + 0x198]
mov ebp, ebx
xor ebp, 1
mov dword [esp + 0x28], ebp
cmp eax, 0xffffffff
je 0x48d3c0
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00489140
add esp, 0x14
test eax, eax
jne 0x48d322
mov ecx, dword [edi + 0x2e8]
mov edx, dword [esp + 0x30]
mov ebp, dword [edi + 0x2f8]
mov esi, dword [edi + 0x2fc]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x2ec]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
call fcn.0048a960
add esp, 0x10
cmp edx, esi
jl 0x48d269
jg 0x48d24d
cmp eax, ebp
jb 0x48d269
mov ecx, dword [esp + 0x18]
push esi
push ebp
push str.After__ldms_connect_time__move_on__n
push ecx
call fcn.0048ae90
add esp, 0x10
mov dword [esp + 0x1c], 0x274c
test ebx, ebx
jne 0x48d2ae
cmp dword [edi + 0x54], ebx
jne 0x48d2ae
mov edx, dword [edi + 0x2ec]
mov eax, dword [edi + 0x2e8]
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
call fcn.0048a960
add esp, 0x10
test edx, edx
jl 0x48d2ae
jg 0x48d29f
cmp eax, 0xc8
jb 0x48d2ae
mov eax, dword [esp + 0x20]
push 1
push eax
call fcn.0048d000
add esp, 8
mov ebp, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x48d3c0
push eax
mov dword [esi + 0x4708], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x50]
test eax, eax
je 0x48d3c0
push 0x2e
lea ecx, [esp + 0x3c]
push ecx
push eax
call fcn.0048a0a0
mov edx, dword [esp + 0x28]
push edx
push edi
call fcn.0048f860
push eax
mov eax, dword [edi + 0xf4]
push eax
lea ecx, [esp + 0x54]
push ecx
push str.connect_to__s_port__ld_failed:__s_n
push esi
call fcn.0048ae90
mov edx, dword [edi + ebx*4 + 0x50]
add esp, 0x28
cmp dword [edx + 0x1c], 0
jne 0x48d380
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
jmp 0x48d393
cmp eax, 2
je 0x48d34d
cmp dword [edi + 0x2d0], 0
jne 0x48d34d
test al, 4
je 0x48d2b6
mov ecx, dword [edi + ebx*4 + 0x198]
push ecx
lea esi, [esp + 0x20]
call fcn.0048c570
add esp, 4
jmp 0x48d2b2
mov edx, dword [edi + ebx*4 + 0x198]
push edx
lea esi, [esp + 0x20]
call fcn.0048c570
add esp, 4
test eax, eax
jne 0x48d40e
mov eax, dword [esp + 0x18]
push str.Connection_failed_n
push eax
call fcn.0048ae90
add esp, 8
jmp 0x48d2b2
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
push 2
push eax
push ecx
call fcn.004b6710
mov dword [edi + 0x2fc], edx
mov edx, dword [esp + 0x20]
push ebx
push edx
mov dword [edi + 0x2f8], eax
call fcn.0048d000
add esp, 8
cmp eax, 7
jne 0x48d3bc
cmp dword [edi + ebp*4 + 0x198], 0xffffffff
jne 0x48d3c0
mov dword [esp + 0x24], eax
inc ebx
cmp ebx, 2
jl 0x48d1e1
cmp dword [esp + 0x24], 0
je 0x48d507
cmp dword [edi + 0x54], 0
jne 0x48d3f6
mov edx, dword [esp + 0x20]
push 1
push edx
call fcn.0048d000
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x48d4a4
cmp dword [edi + 0x274], 0
je 0x48d4b9
mov esi, dword [edi + 0xbc]
jmp 0x48d4e1
mov eax, dword [edi + ebx*4 + 0x198]
mov esi, dword [esp + 0x20]
mov dword [edi + esi*4 + 0x190], eax
mov ecx, dword [edi + ebx*4 + 0x50]
mov dword [edi + 0x4c], ecx
mov dword [edi + ebx*4 + 0x198], 0xffffffff
mov eax, dword [edi + ebp*4 + 0x198]
cmp eax, 0xffffffff
je 0x48d453
push eax
push edi
call fcn.0048c970
add esp, 8
mov dword [edi + ebp*4 + 0x198], 0xffffffff
push esi
push edi
call fcn.0048a4a0
add esp, 8
test eax, eax
jne 0x48d50b
mov edx, dword [esp + 0x34]
mov dword [edi + esi*4 + 0x28c], 1
mov dword [edx], 1
test esi, esi
jne 0x48d48d
mov eax, dword [esp + 0x18]
push 4
push eax
call fcn.004a45a0
add esp, 8
mov ecx, dword [edi + esi*4 + 0x190]
push ecx
push edi
call fcn.0048c6d0
push edi
call fcn.0048a5c0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.004ae123
add esp, 0x5c
ret
cmp dword [edi + 0x270], 0
je 0x48d4ca
mov esi, dword [edi + 0xdc]
jmp 0x48d4e1
cmp dword [edi + 0x264], 0
je 0x48d4db
mov esi, dword [edi + 0xac]
jmp 0x48d4e1
mov esi, dword [edi + 0x98]
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.0048f860
mov ecx, dword [edi + 0xf4]
mov edx, dword [esp + 0x20]
push eax
push ecx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push edx
call fcn.0048af30
add esp, 0x1c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.004ae123
add esp, 0x5c
ret