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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637a05
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x717f80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x68]
mov esi, dword [ebp + 0x18]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x10]
push str.connect_domain
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x74], eax
movq qword [ebp - 0x68], xmm0
mov dword [ebp - 0x60], 0
call fcn.004b2490
mov eax, dword [edi + 0xc20]
lea ecx, [ebp - 0x5c]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x70], eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x44], 0
movq qword [ebp - 0x4c], xmm0
call fcn.004c67b0
cmp byte [edi + 0xc24], 0
mov byte [ebp - 4], 1
mov byte [ebp - 0x44], 1
je 0x58362c
push esi
push dword [ebp - 0x74]
lea eax, [ebp - 0x5c]
push dword [edi + 0xc20]
push edi
push eax
push dword [ebp - 0x7c]
call fcn.005f6230
add esp, 0x18
test al, al
je 0x583615
push 0
lea ecx, [ebp - 0x5c]
call fcn.004c7df0
mov dword [ebp - 0x80], eax
test eax, eax
je 0x583624
push eax
push str.ip_address
mov ecx, esi
call fcn.004b3100
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x20]
push esi
push eax
push dword [ebp - 0x80]
call fcn.00584600
cmp eax, 6
jne 0x58360a
mov ecx, dword [ebp - 0x78]
push esi
push 1
push edi
call fcn.00583f80
test al, al
je 0x583624
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 0x17
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
mov word [ebp - 0x40], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x3e], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004777e0
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x40]
add esp, 0xc
push esi
push dword [ebp - 0x74]
push 0x1c
push eax
push edi
call fcn.00583130
test al, al
je 0x5835ed
mov esi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x70]
add esi, 0x2bc
mov ecx, esi
mov dword [edi + 0xc20], eax
call fcn.00496de0
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00584ab0
add esp, 8
mov byte [ebp - 0x69], 1
jmp 0x5837f0
mov eax, dword [ebp - 0x74]
cmp byte [eax + 0x15], 0
jne 0x5835fc
cmp byte [eax + 0x14], 0
je 0x583624
mov eax, dword [ebp - 0x70]
mov dword [edi + 0xc20], eax
jmp 0x5837ec
cmp eax, 4
jne 0x583624
mov byte [ebp - 0x21], 0
jmp 0x583653
mov eax, dword [ebp - 0x74]
cmp byte [eax + 0x15], 0
jne 0x5835fc
cmp byte [eax + 0x14], 0
jne 0x5835fc
lea ecx, [ebp - 0x5c]
call fcn.004c7a40
push esi
push dword [ebp - 0x74]
xor al, al
push dword [edi + 0xc20]
mov byte [ebp - 0x21], al
lea eax, [ebp - 0x21]
push edi
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x7c]
call fcn.005f5a10
add esp, 0x1c
test al, al
je 0x5835fc
mov ecx, dword [ebp - 0x74]
push esi
call fcn.004d9240
test al, al
je 0x58366b
push dword [0x715910]
jmp 0x5837e5
call sub.KERNEL32.dll_GetTickCount
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 0
call fcn.004c73a0
test eax, eax
jle 0x5837d7
xor ecx, ecx
nop
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004c7df0
mov dword [ebp - 0x80], eax
test eax, eax
je 0x5837c1
push eax
push str.ipv4_address
mov ecx, esi
call fcn.004b3100
mov ecx, dword [ebp - 0x80]
call fcn.00499300
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00584e40
add esp, 8
test al, al
je 0x583768
cmp byte [esi + 0x129], 0
je 0x5836e3
mov eax, dword [esi]
mov ecx, esi
push str.This_is_an_IPV4_numeric_address.
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x78]
push esi
push 1
push edi
call fcn.00583cd0
test al, al
je 0x583796
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, 2
movlpd qword [ebp - 0x2c], xmm0
mov word [ebp - 0x34], ax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp - 0x80]
mov word [ebp - 0x32], ax
call fcn.00499300
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [ebp - 0x78]
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x34]
push 0x10
push eax
push edi
call fcn.00583130
test al, al
je 0x583796
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x30]
mov dword [edi + 0xc20], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp - 0x78]
push eax
lea ecx, [ecx + 0x2bc]
call fcn.0049b7e0
mov byte [ebp - 0x69], 1
jmp 0x5837f0
mov ecx, dword [ebp - 0x80]
call fcn.00499300
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.00584f10
add esp, 8
test al, al
je 0x583796
cmp byte [esi + 0x129], 0
je 0x583796
mov eax, dword [esi]
mov ecx, esi
push str.This_is_an_IPV6_numeric_address.
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x74]
push esi
call fcn.004d9240
test al, al
jne 0x58385d
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp - 0x84]
cmp eax, ecx
jbe 0x583846
sub eax, ecx
cmp eax, dword [ebp - 0x70]
ja 0x583820
inc dword [ebp - 0x7c]
lea ecx, [ebp - 0x5c]
call fcn.004c73a0
mov ecx, dword [ebp - 0x7c]
cmp ecx, eax
jl 0x583690
push str.Failed.
mov eax, dword [ebp - 0x70]
mov dword [edi + 0xc20], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov byte [ebp - 0x69], 0
lea ecx, [ebp - 0x5c]
call fcn.004c6b10
lea ecx, [ebp - 0x68]
call fcn.004b2630
mov al, byte [ebp - 0x69]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00622073
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_make_TCP_connection_before_applications_max_wait_time_to_connect.
call dword [eax + 0x14]
push dword [ebp - 0x70]
mov ecx, esi
push str.connectTimeoutMs
call fcn.004b3290
mov eax, dword [ebp - 0x70]
mov dword [edi + 0xc20], eax
jmp 0x5837ec
mov eax, dword [esi]
mov ecx, esi
push str.Connect_timeout.
call dword [eax + 0x14]
mov eax, dword [ebp - 0x70]
mov dword [edi + 0xc20], eax
jmp 0x5837ec
push dword [0x715910]
jmp 0x5837dc