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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov eax, edx
xor ebx, ebx
mov edx, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x44], eax
xor ecx, ecx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], ebx
mov esi, dword [edi]
mov byte [edx], cl
mov dword [ebp - 0x3c], esi
cmp byte [eax + edi + 0x1c9], cl
je 0x1000e970
mov byte [edx], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
mov dword [ebp - 0x40], 0x493e0
mov eax, 0x10624dd3
mul ecx
mov eax, edx
mov edx, dword [esi + 0x1c8]
shr eax, 6
mov dword [ebp - 0x54], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul eax, ecx, 0x3e8
mov ecx, 1
mov dword [ebp - 0x50], eax
xor eax, eax
test edx, edx
cmovg eax, ecx
mov ecx, dword [esi + 0x1cc]
test ecx, ecx
jle 0x1000e9be
or eax, 2
dec eax
je 0x1000e9d8
dec eax
je 0x1000e9d3
dec eax
jne 0x1000e9db
cmp edx, ecx
mov eax, ecx
cmovl eax, edx
mov dword [ebp - 0x40], eax
jmp 0x1000e9db
mov dword [ebp - 0x40], ecx
jmp 0x1000e9db
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x50]
mov esi, dword [esi + 0x4a8]
sub esi, dword [ebp - 0x54]
sub ecx, dword [eax + 0x4ac]
mov eax, 0x10624dd3
imul ecx
imul eax, esi, 0x3e8
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub eax, ecx
mov ecx, dword [ebp - 0x40]
add ecx, eax
mov dword [ebp - 0x40], ecx
je 0x1000ed2c
test ecx, ecx
js 0x1000ed2c
xor esi, esi
jmp 0x1000ea30
mov eax, dword [edi + esi*4 + 0x15c]
cmp eax, 0xffffffff
je 0x1000ebca
push 0
push eax
or edx, 0xffffffff
or ecx, 0xffffffff
call fcn.100104f0
add esp, 8
test eax, eax
jne 0x1000eafc
mov ecx, dword [ebp - 0x50]
mov eax, 0x10624dd3
sub ecx, dword [edi + 0x1e0]
imul ecx
mov eax, dword [ebp - 0x54]
sub eax, dword [edi + 0x1dc]
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
mov eax, dword [edi + 0x1e8]
cmp ecx, eax
jl 0x1000eaa7
push eax
push str.After__ldms_connect_time__move_on__n
push dword [ebp - 0x3c]
call fcn.10010cc0
mov ebx, 0x274c
add esp, 0xc
mov dword [ebp - 0x4c], ebx
test esi, esi
jne 0x1000eb40
cmp dword [edi + 0x54], esi
jne 0x1000eb40
mov ecx, dword [ebp - 0x50]
mov eax, 0x10624dd3
sub ecx, dword [edi + 0x1e0]
imul ecx
mov eax, dword [ebp - 0x54]
sub eax, dword [edi + 0x1dc]
sar edx, 6
imul eax, eax, 0x3e8
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
add ecx, eax
cmp ecx, 0xc8
jl 0x1000eb40
mov edx, dword [ebp - 0x44]
mov ecx, edi
push 1
call fcn.1000e550
add esp, 4
jmp 0x1000eb40
cmp eax, 2
jne 0x1000eb2a
mov ecx, dword [edi + esi*4 + 0x15c]
lea edx, [ebp - 0x4c]
call fcn.1000e4e0
test al, al
jne 0x1000ec19
push str.Connection_failed_n
push dword [ebp - 0x3c]
call fcn.10010cc0
add esp, 8
jmp 0x1000eb3d
test al, 4
je 0x1000eb40
mov ecx, dword [edi + esi*4 + 0x15c]
lea edx, [ebp - 0x4c]
call fcn.1000e4e0
mov ebx, dword [ebp - 0x4c]
test ebx, ebx
je 0x1000ebca
mov eax, dword [ebp - 0x3c]
push ebx
mov dword [eax + 0x8574], ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [edi + esi*4 + 0x50]
test ecx, ecx
je 0x1000ebca
mov eax, dword [ecx + 4]
sub eax, 2
jne 0x1000eb7b
mov ecx, dword [ecx + 0x18]
lea edx, [ebp - 0x38]
add ecx, 4
push 0x2e
call fcn.10031970
add esp, 4
mov edx, ebx
mov ecx, edi
call fcn.100320c0
push eax
push dword [edi + 0xb0]
lea eax, [ebp - 0x38]
push eax
push str.connect_to__s_port__ld_failed:__s_n
push dword [ebp - 0x3c]
call fcn.10010cc0
mov eax, dword [edi + esi*4 + 0x50]
add esp, 0x14
cmp dword [eax + 0x1c], 0
mov eax, dword [ebp - 0x40]
je 0x1000ebb1
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x44]
mov ecx, edi
push esi
mov dword [edi + 0x1e8], eax
call fcn.1000e550
add esp, 4
mov dword [ebp - 0x48], eax
jmp 0x1000ebcd
mov eax, dword [ebp - 0x48]
inc esi
cmp esi, 2
jl 0x1000ea30
test eax, eax
je 0x1000ed41
cmp dword [edi + 0x54], 0
jne 0x1000ec01
mov edx, dword [ebp - 0x44]
mov ecx, edi
push 1
call fcn.1000e550
mov ecx, eax
add esp, 4
mov dword [ebp - 0x48], ecx
test ecx, ecx
je 0x1000e95d
cmp byte [edi + 0x1c2], 0
je 0x1000ecf1
mov esi, dword [edi + 0xa8]
jmp 0x1000ecf7
mov ecx, dword [ebp - 0x44]
mov ebx, esi
mov eax, dword [edi + esi*4 + 0x15c]
xor ebx, 1
mov dword [edi + ecx*4 + 0x154], eax
mov eax, dword [edi + esi*4 + 0x50]
mov dword [edi + 0x4c], eax
mov dword [edi + esi*4 + 0x15c], 0xffffffff
mov edx, dword [edi + ebx*4 + 0x15c]
cmp edx, 0xffffffff
je 0x1000ec5f
mov ecx, edi
call fcn.1000f420
mov dword [edi + ebx*4 + 0x15c], 0xffffffff
mov ebx, dword [ebp - 0x44]
mov ecx, edi
mov edx, ebx
call fcn.1000b010
test eax, eax
jne 0x1000ed41
mov ecx, dword [ebp - 0x58]
mov byte [ebx + edi + 0x1c9], 1
mov byte [ecx], 1
test ebx, ebx
jne 0x1000ecc9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp - 0x3c]
mov esi, eax
mov eax, 0x10624dd3
mul esi
push dword [ebx + 0x4ac]
shr edx, 6
push dword [ebx + 0x4a8]
imul ecx, edx, 0x3e8
sub esi, ecx
imul eax, esi, 0x3e8
push eax
push edx
call fcn.10011800
movsd qword [ebx + 0x478], xmm0
add esp, 0x10
mov ebx, dword [ebp - 0x44]
mov edx, dword [edi + ebx*4 + 0x154]
mov ecx, edi
call fcn.1000e750
mov ecx, edi
call fcn.1000b0a0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x98]
mov edx, ebx
mov ecx, edi
call fcn.100320c0
push eax
push dword [edi + 0xb0]
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push dword [ebp - 0x3c]
call fcn.10010d80
mov eax, dword [ebp - 0x48]
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100370be
mov esp, ebp
pop ebp
ret
push str.Connection_time_out
push dword [ebp - 0x3c]
call fcn.10010d80
add esp, 8
mov eax, 0x1c
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100370be
mov esp, ebp
pop ebp
ret