Function at 0x594c80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x611d48
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x70635c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
push str.resolveHostname6
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.004f53f0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x2c]
mov byte [ecx], 0
mov edx, dword [ebp + 0x30]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004ee6a0
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xa4], edx
push 0x6b51ed
push 0x6b51f0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004ed6f0
push 0x6b51ee
push 0x6b51f8
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004ed6f0
push 0x2f
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004ea670
push 0x3a
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004ea670
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004ea2e0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004e9da0
test eax, eax
jne 0x594d88
push 0x6b5204
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 8]
push ecx
push 0x6b523c
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x2c]
call edx
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f54a0
mov al, byte [ebp - 0x61]
jmp 0x59506b
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.005d1cb0
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x18], 0
je 0x594dad
mov eax, dword [ebp - 0x2c]
push eax
push 0x6b5248
mov ecx, dword [ebp + 0x18]
call fcn.005209f0
mov byte [ebp - 0x21], 0
cmp dword [ebp + 0x18], 0
je 0x594dc7
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x88], 0
je 0x594dc7
mov byte [ebp - 0x21], 1
movzx edx, byte [ebp - 0x21]
test edx, edx
jne 0x594e5c
push 0x20
push 0
lea eax, [ebp - 0x50]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0xb0]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0xac]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0xb8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ecx + 0xb4]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x6c]
mov dword [eax + 0xbc], 0
mov ecx, dword [ebp - 0x6c]
add ecx, 0xbc
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0051b3e0
add esp, 0x14
mov byte [ebp - 0x62], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f54a0
mov al, byte [ebp - 0x62]
jmp 0x59506b
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x2c], ecx
mov edx, dword [ebp - 0x6c]
mov byte [edx + 0x28], 1
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0xb0], ecx
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp + 0x20]
mov dword [edx + 0xac], eax
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 0x24]
mov dword [ecx + 0xb8], edx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp + 0x28]
mov dword [eax + 0xb4], ecx
mov edx, dword [ebp - 0x6c]
mov dword [edx + 0xbc], 0
mov eax, dword [ebp - 0x6c]
mov byte [eax + 0xa8], 0
mov ecx, dword [ebp - 0x6c]
call fcn.004dca50
call fcn.004f3ed0
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x6c]
push edx
push 0x595080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x594eef
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], 0
setne cl
mov byte [ebp - 0x2d], cl
movzx edx, byte [ebp - 0x2d]
test edx, edx
jne 0x594f2e
push str.Failed_to_start_background_thread_for_resolving_domain_name.
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x63], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f54a0
mov al, byte [ebp - 0x63]
jmp 0x59506b
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x594f4b
push str.Resolving_domain_name__IPV4_IPV6_...
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x6c]
movzx edx, byte [ecx + 0x28]
test edx, edx
je 0x59504d
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc8
jle 0x594f86
push 0xa
call fcn.004f3ec0
add esp, 4
jmp 0x594f90
push 2
call fcn.004f3ec0
add esp, 4
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x88]
jb 0x595048
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
call fcn.00520b70
movzx ecx, al
test ecx, ecx
je 0x594ff1
mov edx, dword [ebp + 0x2c]
mov byte [edx], 1
push 0x6b52c0
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f54a0
mov al, byte [ebp - 0x64]
jmp 0x59506b
cmp dword [ebp + 0x10], 0
je 0x595048
call fcn.004f3ed0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x10]
jbe 0x595048
mov edx, dword [ebp - 0x5c]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp + 0x10]
jbe 0x595048
push str.Timeout_in_resolving_domain_name.
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x30]
mov byte [ecx], 1
mov byte [ebp - 0x65], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f54a0
mov al, byte [ebp - 0x65]
jmp 0x59506b
jmp 0x594f59
mov edx, dword [ebp - 0x6c]
mov al, byte [edx + 0xa8]
mov byte [ebp - 0x66], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004f54a0
mov al, byte [ebp - 0x66]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x2c