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

Disassembly:
sub esp, 0x58
mov eax, dword [0x1007f1e0]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push esi
xor ecx, ecx
push edi
mov edi, dword [esp + 0x64]
mov esi, dword [edi]
mov dword [eax], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 8], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
cmp dword [edi + edx*4 + 0x3e4], ecx
je 0x10025ad4
pop edi
mov dword [eax], 1
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004d073
add esp, 0x58
ret
push ebx
push ebp
call fcn.10021e90
mov ebx, eax
mov eax, dword [esi + 0x200]
xor ecx, ecx
cmp eax, ecx
mov ebp, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x14], 0x493e0
mov dword [esp + 0x18], ecx
jle 0x10025b04
mov ecx, 1
mov edx, dword [esi + 0x204]
test edx, edx
jle 0x10025b11
or ecx, 2
sub ecx, 1
je 0x10025b26
sub ecx, 1
je 0x10025b24
sub ecx, 1
jne 0x10025b2f
cmp eax, edx
jl 0x10025b26
mov eax, edx
cdq
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x64c]
mov ecx, dword [esi + 0x648]
push eax
push ecx
push ebp
push ebx
call fcn.10021ec0
mov ecx, dword [esp + 0x24]
add esp, 0x10
sub ecx, eax
mov eax, dword [esp + 0x18]
sbb eax, edx
mov edx, ecx
or edx, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
je 0x10025b6b
test eax, eax
jg 0x10025b91
jl 0x10025b6b
test ecx, ecx
jae 0x10025b91
push str.Connection_time_out
push esi
call fcn.10022500
add esp, 8
pop ebp
pop ebx
pop edi
mov eax, 0x1c
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004d073
add esp, 0x58
ret
xor ebx, ebx
mov eax, dword [edi + ebx*4 + 0x1a0]
mov ebp, ebx
xor ebp, 1
mov dword [esp + 0x24], ebp
cmp eax, 0xffffffff
je 0x10025d76
push 0
push 0
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.10018440
add esp, 0x14
test eax, eax
jne 0x10025cd6
mov ecx, dword [edi + 0x440]
mov edx, dword [esp + 0x2c]
mov ebp, dword [edi + 0x450]
mov esi, dword [edi + 0x454]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x444]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.10021ec0
add esp, 0x10
cmp edx, esi
jl 0x10025c1b
jg 0x10025bff
cmp eax, ebp
jb 0x10025c1b
mov ecx, dword [esp + 0x10]
push esi
push ebp
push str.After__ldms_connect_time__move_on__n
push ecx
call fcn.10022470
add esp, 0x10
mov dword [esp + 0x1c], 0x274c
test ebx, ebx
jne 0x10025c62
cmp dword [edi + 0x5c], ebx
jne 0x10025c62
mov edx, dword [edi + 0x444]
mov eax, dword [edi + 0x440]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.10021ec0
add esp, 0x10
test edx, edx
jl 0x10025c62
jg 0x10025c51
cmp eax, 0xc8
jb 0x10025c62
mov eax, dword [esp + 0x70]
push 1
push eax
mov eax, edi
call fcn.100259c0
add esp, 8
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10025d76
push eax
mov dword [esi + 0x475c], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [edi + ebx*4 + 0x58]
test eax, eax
je 0x10025d76
push 0x2e
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.10019ec0
mov edx, dword [esp + 0x28]
push edx
push edi
call fcn.10017a20
push eax
mov eax, dword [edi + 0xfc]
push eax
lea ecx, [esp + 0x50]
push ecx
push str.connect_to__s_port__ld_failed:__s_n
push esi
call fcn.10022470
mov edx, dword [edi + ebx*4 + 0x58]
add esp, 0x28
cmp dword [edx + 0x1c], 0
jne 0x10025d34
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x10025d47
cmp eax, 2
je 0x10025d01
cmp dword [edi + 0x428], 0
jne 0x10025d01
test al, 4
je 0x10025c6a
mov ecx, dword [edi + ebx*4 + 0x1a0]
push ecx
lea esi, [esp + 0x20]
call fcn.10024e40
add esp, 4
jmp 0x10025c66
mov edx, dword [edi + ebx*4 + 0x1a0]
push edx
lea esi, [esp + 0x20]
call fcn.10024e40
add esp, 4
test eax, eax
jne 0x10025dc6
mov eax, dword [esp + 0x10]
push str.Connection_failed_n
push eax
call fcn.10022470
add esp, 8
jmp 0x10025c66
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push 2
push eax
push ecx
call fcn.100514e0
mov dword [edi + 0x454], edx
mov edx, dword [esp + 0x70]
mov dword [edi + 0x450], eax
push ebx
push edx
mov eax, edi
call fcn.100259c0
add esp, 8
cmp eax, 7
jne 0x10025d72
cmp dword [edi + ebp*4 + 0x1a0], 0xffffffff
jne 0x10025d76
mov dword [esp + 0x20], eax
inc ebx
cmp ebx, 2
jl 0x10025b93
cmp dword [esp + 0x20], 0
je 0x10025ebf
cmp dword [edi + 0x5c], 0
jne 0x10025dae
mov edx, dword [esp + 0x70]
push 1
push edx
mov eax, edi
call fcn.100259c0
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10025ebf
cmp dword [edi + 0x3cc], 0
je 0x10025e71
mov esi, dword [edi + 0xc4]
jmp 0x10025e99
mov eax, dword [edi + ebx*4 + 0x1a0]
mov esi, dword [esp + 0x70]
mov dword [edi + esi*4 + 0x198], eax
mov ecx, dword [edi + ebx*4 + 0x58]
mov dword [edi + 0x54], ecx
mov dword [edi + ebx*4 + 0x1a0], 0xffffffff
mov eax, dword [edi + ebp*4 + 0x1a0]
cmp eax, 0xffffffff
je 0x10025e0b
push eax
push edi
call fcn.10025300
add esp, 8
mov dword [edi + ebp*4 + 0x1a0], 0xffffffff
push esi
push edi
call fcn.1001b080
add esp, 8
test eax, eax
jne 0x10025ec3
mov edx, dword [esp + 0x30]
mov dword [edi + esi*4 + 0x3e4], 1
mov dword [edx], 1
test esi, esi
jne 0x10025e45
mov eax, dword [esp + 0x10]
push 4
push eax
call fcn.10029e00
add esp, 8
mov ecx, dword [edi + esi*4 + 0x198]
push ecx
push edi
call fcn.10024f70
push edi
call fcn.1001b1a0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004d073
add esp, 0x58
ret
cmp dword [edi + 0x3c8], 0
je 0x10025e82
mov esi, dword [edi + 0xe4]
jmp 0x10025e99
cmp dword [edi + 0x3bc], 0
je 0x10025e93
mov esi, dword [edi + 0xb4]
jmp 0x10025e99
mov esi, dword [edi + 0xa0]
mov eax, dword [esp + 0x1c]
push eax
push edi
call fcn.10017a20
mov ecx, dword [edi + 0xfc]
mov edx, dword [esp + 0x18]
push eax
push ecx
push esi
push str.Failed_to_connect_to__s_port__ld:__s
push edx
call fcn.10022500
add esp, 0x1c
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x64]
pop ebp
pop ebx
pop edi
pop esi
xor ecx, esp
call fcn.1004d073
add esp, 0x58
ret