Function at 0x581d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5c58
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x6a7c78]
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.00505810
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.004d52c0
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xa4], edx
push 0x674be5
push 0x674be8
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004d4360
push 0x674be6
push 0x674bf0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004d4360
push 0x2f
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004d14c0
push 0x3a
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004d14c0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004d1130
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004d0ca0
test eax, eax
jne 0x581e78
push 0x674bfc
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 0x674c34
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.005058c0
mov al, byte [ebp - 0x61]
jmp 0x58215b
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004aeda0
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x18], 0
je 0x581e9d
mov eax, dword [ebp - 0x2c]
push eax
push 0x674c40
mov ecx, dword [ebp + 0x18]
call fcn.0050e690
mov byte [ebp - 0x21], 0
cmp dword [ebp + 0x18], 0
je 0x581eb7
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x88], 0
je 0x581eb7
mov byte [ebp - 0x21], 1
movzx edx, byte [ebp - 0x21]
test edx, edx
jne 0x581f4c
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.0052a5f0
add esp, 0x14
mov byte [ebp - 0x62], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.005058c0
mov al, byte [ebp - 0x62]
jmp 0x58215b
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.004e97f0
call fcn.00504690
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x6c]
push edx
push 0x582170
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x581fdf
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 0x58201e
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.005058c0
mov al, byte [ebp - 0x63]
jmp 0x58215b
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x58203b
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 0x58213d
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc8
jle 0x582076
push 0xa
call fcn.00504680
add esp, 4
jmp 0x582080
push 2
call fcn.00504680
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 0x582138
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
call fcn.0050e810
movzx ecx, al
test ecx, ecx
je 0x5820e1
mov edx, dword [ebp + 0x2c]
mov byte [edx], 1
push 0x674cb8
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.005058c0
mov al, byte [ebp - 0x64]
jmp 0x58215b
cmp dword [ebp + 0x10], 0
je 0x582138
call fcn.00504690
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x10]
jbe 0x582138
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 0x582138
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.005058c0
mov al, byte [ebp - 0x65]
jmp 0x58215b
jmp 0x582049
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.005058c0
mov al, byte [ebp - 0x66]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x2c