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

Disassembly:
sub esp, 0x64
mov eax, dword [0x46e074]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
mov ebx, ecx
mov ecx, dword [esp + 0x70]
xor ebp, ebp
push esi
mov esi, dword [ebx]
mov dword [eax], ebp
push edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ebp
cmp dword [ebx + ecx*4 + 0x29c], ebp
je 0x41f506
mov dword [eax], 1
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004453f2
add esp, 0x64
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x24], ecx
push 1
lea ecx, [esp + 0x24]
mov eax, esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edx
call fcn.0041ec40
add esp, 4
cmp edx, ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jg 0x41f581
jl 0x41f55a
cmp eax, ebp
jae 0x41f581
push str.Connection_time_out
mov eax, esi
call fcn.00414140
add esp, 4
mov eax, 0x1c
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004453f2
add esp, 0x64
ret
mov dword [esp + 0x1c], ebp
jmp 0x41f590
mov eax, dword [ebx + ebp*4 + 0x1a8]
mov edi, ebp
xor edi, 1
mov dword [esp + 0x2c], edi
cmp eax, 0xffffffff
je 0x41f7a8
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.00421190
add esp, 0x14
test eax, eax
jne 0x41f703
mov ecx, dword [ebx + 0x2fc]
mov ebp, dword [ebx + 0x2f8]
mov edi, dword [ebx + 0x30c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push 0
sub eax, ecx
cdq
push 0x3e8
push edx
push eax
call fcn.00449630
mov esi, eax
mov eax, dword [esp + 0x28]
sub eax, ebp
imul eax, eax, 0x3e8
mov ecx, edx
cdq
add esi, eax
adc ecx, edx
cmp ecx, edi
jl 0x41f631
jg 0x41f610
cmp esi, dword [ebx + 0x308]
jb 0x41f631
mov eax, dword [ebx + 0x308]
mov ecx, dword [esp + 0x14]
push edi
push eax
push str.After__ldms_connect_time__move_on__n
call fcn.004140b0
add esp, 0xc
mov dword [esp + 0x10], 0x274c
cmp dword [esp + 0x1c], 0
jne 0x41f67a
cmp dword [ebx + 0x54], 0
jne 0x41f67a
mov ecx, dword [ebx + 0x2fc]
mov edx, dword [ebx + 0x2f8]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call fcn.00421a90
add esp, 0x10
test edx, edx
jl 0x41f67a
jg 0x41f66b
cmp eax, 0xc8
jb 0x41f67a
mov edx, dword [esp + 0x78]
push 1
push edx
call fcn.0041f140
add esp, 8
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41f7a8
mov edx, dword [esp + 0x14]
push eax
mov dword [edx + 0x8700], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebx + ebp*4 + 0x50]
test eax, eax
je 0x41f7a8
mov ecx, dword [eax + 4]
sub ecx, 2
jne 0x41f6c4
mov eax, dword [eax + 0x18]
add eax, 4
push 0x2e
push eax
lea esi, [esp + 0x44]
call fcn.0043eab0
add esp, 8
mov edi, dword [esp + 0x10]
push ebx
call fcn.00412840
add esp, 4
push eax
mov eax, dword [ebx + 0x104]
push eax
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x20]
push str.connect_to__s_port__ld_failed:__s_n
call fcn.004140b0
mov edx, dword [ebx + ebp*4 + 0x50]
add esp, 0x10
cmp dword [edx + 0x1c], 0
jne 0x41f764
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
jmp 0x41f777
cmp eax, 2
je 0x41f732
cmp dword [ebx + 0x2e0], 0
jne 0x41f732
test al, 4
je 0x41f67e
mov eax, dword [ebx + ebp*4 + 0x1a8]
push eax
lea esi, [esp + 0x14]
call fcn.0041f0d0
add esp, 4
jmp 0x41f67e
mov ecx, dword [ebx + ebp*4 + 0x1a8]
push ecx
lea esi, [esp + 0x14]
call fcn.0041f0d0
add esp, 4
test eax, eax
jne 0x41f7fa
mov ecx, dword [esp + 0x14]
push str.Connection_failed_n
call fcn.004140b0
add esp, 4
jmp 0x41f67e
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push 0
push 2
push eax
push ecx
call fcn.00449630
mov dword [ebx + 0x30c], edx
mov edx, dword [esp + 0x78]
push ebp
push edx
mov dword [ebx + 0x308], eax
call fcn.0041f140
add esp, 8
cmp eax, 7
jne 0x41f7a4
mov ecx, dword [esp + 0x2c]
cmp dword [ebx + ecx*4 + 0x1a8], 0xffffffff
jne 0x41f7a8
mov dword [esp + 0x18], eax
inc ebp
cmp ebp, 2
mov dword [esp + 0x1c], ebp
jl 0x41f590
cmp dword [esp + 0x18], 0
je 0x41f927
cmp dword [ebx + 0x54], 0
jne 0x41f7e2
mov ecx, dword [esp + 0x78]
push 1
push ecx
call fcn.0041f140
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x41f927
cmp dword [ebx + 0x284], 0
je 0x41f8d8
mov esi, dword [ebx + 0xcc]
jmp 0x41f900
mov edx, dword [ebx + ebp*4 + 0x1a8]
mov eax, dword [esp + 0x78]
mov dword [ebx + eax*4 + 0x1a0], edx
mov ecx, dword [ebx + ebp*4 + 0x50]
mov dword [ebx + 0x4c], ecx
mov dword [ebx + ebp*4 + 0x1a8], 0xffffffff
mov eax, dword [ebx + edi*4 + 0x1a8]
cmp eax, 0xffffffff
je 0x41f83c
mov esi, ebx
call fcn.0041fec0
mov dword [ebx + edi*4 + 0x1a8], 0xffffffff
mov edi, dword [esp + 0x78]
mov eax, ebx
call fcn.0041b3f0
test eax, eax
jne 0x41f92b
mov edx, dword [esp + 0x30]
mov dword [ebx + edi*4 + 0x29c], 1
mov dword [edx], 1
test edi, edi
jne 0x41f8ac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov eax, 0x10624dd3
mul ecx
mov esi, dword [esp + 0x14]
shr edx, 6
mov eax, edx
imul eax, eax, 0x3e8
sub ecx, eax
mov eax, dword [esi + 0x614]
imul ecx, ecx, 0x3e8
push eax
mov eax, dword [esi + 0x610]
push eax
push ecx
push edx
call fcn.00421ad0
add esp, 0x10
fstp qword [esi + 0x5e0]
mov ecx, dword [ebx + edi*4 + 0x1a0]
push ebx
call fcn.0041f310
add esp, 4
mov eax, ebx
call fcn.0041b510
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.004453f2
add esp, 0x64
ret
cmp dword [ebx + 0x280], 0
je 0x41f8e9
mov esi, dword [ebx + 0xec]
jmp 0x41f900
cmp dword [ebx + 0x274], 0
je 0x41f8fa
mov esi, dword [ebx + 0xac]
jmp 0x41f900
mov esi, dword [ebx + 0x98]
mov edi, dword [esp + 0x10]
push ebx
call fcn.00412840
mov edx, dword [ebx + 0x104]
add esp, 4
push eax
mov eax, dword [esp + 0x18]
push edx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
call fcn.00414140
add esp, 0x10
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004453f2
add esp, 0x64
ret