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

Disassembly:
sub esp, 0x54
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [esp + 0x64]
mov esi, dword [edi]
mov dword [eax], ebp
cmp dword [edi + ecx*4 + 0x25c], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
je 0x442db6
pop edi
pop esi
mov dword [eax], 1
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x54
ret
push ebx
call fcn.0043f510
mov ebx, eax
mov eax, dword [esi + 0x1e0]
xor ecx, ecx
cmp eax, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], 0x493e0
jle 0x442ddf
mov ecx, 1
mov edx, dword [esi + 0x1e4]
test edx, edx
jle 0x442dec
or ecx, 2
sub ecx, 1
je 0x442e05
sub ecx, 1
je 0x442dff
sub ecx, 1
jne 0x442e09
cmp eax, edx
jl 0x442e05
mov dword [esp + 0x10], edx
jmp 0x442e09
mov dword [esp + 0x10], eax
mov edx, dword [esi + 0x564]
mov eax, dword [esi + 0x560]
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
push ebx
call fcn.0043f540
add esp, 0x10
sub dword [esp + 0x10], eax
je 0x442e31
cmp dword [esp + 0x10], ebp
jge 0x442e57
push str.Connection_time_out
push esi
call fcn.0043fab0
add esp, 8
pop ebx
pop edi
pop esi
mov eax, 0x1c
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x54
ret
xor ebx, ebx
lea esp, [esp]
mov eax, ebx
xor eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [edi + ebx*4 + 0x170]
cmp eax, 0xffffffff
je 0x443012
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00433e40
add esp, 0x10
test eax, eax
jne 0x442f24
mov edx, dword [edi + 0x2ac]
mov eax, dword [edi + 0x2a8]
mov ecx, dword [esp + 0x24]
mov esi, dword [edi + 0x2b4]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
xor ebp, ebp
push edx
mov dword [esp + 0x28], ebp
call fcn.0043f540
add esp, 0x10
cmp eax, esi
jl 0x442edc
mov eax, dword [esp + 0x14]
push esi
push str.After__ldms_connect_time__move_on__n
push eax
call fcn.0043fa20
mov ebp, 0x274c
add esp, 0xc
mov dword [esp + 0x18], ebp
test ebx, ebx
jne 0x442f82
cmp dword [edi + 0x54], ebx
jne 0x442f82
mov ecx, dword [edi + 0x2ac]
mov edx, dword [edi + 0x2a8]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
call fcn.0043f540
add esp, 0x10
cmp eax, 0xc8
jl 0x442f82
mov edx, dword [esp + 0x6c]
push 1
push edx
mov eax, edi
call fcn.00442ca0
jmp 0x442f7f
cmp eax, 2
je 0x442f50
cmp dword [edi + 0x29c], 0
jne 0x442f50
test al, 4
je 0x442f86
mov eax, dword [edi + ebx*4 + 0x170]
push eax
lea esi, [esp + 0x1c]
call fcn.00442240
mov ebp, dword [esp + 0x1c]
add esp, 4
jmp 0x442f82
mov ecx, dword [edi + ebx*4 + 0x170]
push ecx
lea esi, [esp + 0x1c]
call fcn.00442240
add esp, 4
test eax, eax
jne 0x443064
mov edx, dword [esp + 0x14]
push str.Connection_failed_n
push edx
call fcn.0043fa20
mov ebp, dword [esp + 0x20]
add esp, 8
mov esi, dword [esp + 0x14]
test ebp, ebp
je 0x443012
push ebp
mov dword [esi + 0x8630], ebp
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x50]
test eax, eax
je 0x443012
push 0x2e
lea ecx, [esp + 0x34]
push ecx
push eax
call fcn.00435670
push ebp
push edi
call fcn.004335e0
mov edx, dword [edi + 0xc0]
push eax
push edx
lea eax, [esp + 0x4c]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push esi
call fcn.0043fa20
mov ecx, dword [edi + ebx*4 + 0x50]
mov eax, dword [esp + 0x38]
add esp, 0x28
cmp dword [ecx + 0x1c], 0
je 0x442fe5
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x6c]
mov dword [edi + 0x2b4], eax
push ebx
push edx
mov eax, edi
call fcn.00442ca0
add esp, 8
cmp eax, 7
jne 0x44300e
mov ecx, dword [esp + 0x28]
cmp dword [edi + ecx*4 + 0x170], 0xffffffff
jne 0x443012
mov dword [esp + 0x1c], eax
add ebx, 1
cmp ebx, 2
jl 0x442e60
cmp dword [esp + 0x1c], 0
je 0x443146
cmp dword [edi + 0x54], 0
jne 0x44304c
mov ecx, dword [esp + 0x6c]
push 1
push ecx
mov eax, edi
call fcn.00442ca0
add esp, 8
test eax, eax
mov dword [esp + 0x1c], eax
je 0x443146
cmp dword [edi + 0x240], 0
je 0x44310d
mov esi, dword [edi + 0xb8]
jmp 0x443124
mov edx, dword [edi + ebx*4 + 0x170]
mov esi, dword [esp + 0x6c]
mov dword [edi + esi*4 + 0x168], edx
mov eax, dword [edi + ebx*4 + 0x50]
or ebp, 0xffffffff
mov dword [edi + 0x4c], eax
mov dword [edi + ebx*4 + 0x170], ebp
mov ebx, dword [esp + 0x28]
mov eax, dword [edi + ebx*4 + 0x170]
cmp eax, ebp
je 0x4430a7
push eax
push edi
call fcn.004426d0
add esp, 8
mov dword [edi + ebx*4 + 0x170], ebp
push esi
push edi
call fcn.00436710
add esp, 8
test eax, eax
jne 0x44314a
test esi, esi
mov ecx, dword [esp + 0x2c]
mov dword [edi + esi*4 + 0x25c], 1
mov dword [ecx], 1
jne 0x4430e1
mov edx, dword [esp + 0x14]
push 4
push edx
call fcn.00448620
add esp, 8
mov eax, dword [edi + esi*4 + 0x168]
push eax
push edi
call fcn.00442350
push edi
call fcn.00436830
add esp, 0xc
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0042b7d2
add esp, 0x54
ret
cmp dword [edi + 0x238], 0
je 0x44311e
mov esi, dword [edi + 0xa8]
jmp 0x443124
mov esi, dword [edi + 0x98]
push ebp
push edi
call fcn.004335e0
mov edx, dword [edi + 0xc0]
push eax
mov eax, dword [esp + 0x20]
push edx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push eax
call fcn.0043fab0
add esp, 0x1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042b7d2
add esp, 0x54
ret