Function at 0x4ea120
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d0d8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5f5618]
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.004618a0
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.0042ac00
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xa4], edx
push 0x5b6785
push 0x5b6788
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.00429c50
push 0x5b6786
push 0x5b6790
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.00429c50
push 0x2f
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.00426bd0
push 0x3a
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.00426bd0
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.00426840
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.00426300
test eax, eax
jne 0x4ea228
push 0x5b679c
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 0x5b67d4
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.00461950
mov al, byte [ebp - 0x61]
jmp 0x4ea50b
mov ecx, dword [ebp - 0x6c]
add ecx, 0x30
call fcn.004a9e20
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x18], 0
je 0x4ea24d
mov eax, dword [ebp - 0x2c]
push eax
push 0x5b67e0
mov ecx, dword [ebp + 0x18]
call fcn.0046b880
mov byte [ebp - 0x21], 0
cmp dword [ebp + 0x18], 0
je 0x4ea267
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + 0x88], 0
je 0x4ea267
mov byte [ebp - 0x21], 1
movzx edx, byte [ebp - 0x21]
test edx, edx
jne 0x4ea2fc
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.00487f50
add esp, 0x14
mov byte [ebp - 0x62], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00461950
mov al, byte [ebp - 0x62]
jmp 0x4ea50b
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.00442d60
call fcn.00460590
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x54]
push ecx
push 0
mov edx, dword [ebp - 0x6c]
push edx
push 0x4ea520
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x4ea38f
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 0x4ea3ce
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.00461950
mov al, byte [ebp - 0x63]
jmp 0x4ea50b
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx + 0x48]
test edx, edx
je 0x4ea3eb
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 0x4ea4ed
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xc8
jle 0x4ea426
push 0xa
call fcn.00460580
add esp, 4
jmp 0x4ea430
push 2
call fcn.00460580
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 0x4ea4e8
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 0x18]
call fcn.0046ba00
movzx ecx, al
test ecx, ecx
je 0x4ea491
mov edx, dword [ebp + 0x2c]
mov byte [edx], 1
push 0x5b6858
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.00461950
mov al, byte [ebp - 0x64]
jmp 0x4ea50b
cmp dword [ebp + 0x10], 0
je 0x4ea4e8
call fcn.00460590
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
cmp ecx, dword [ebp - 0x10]
jbe 0x4ea4e8
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 0x4ea4e8
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.00461950
mov al, byte [ebp - 0x65]
jmp 0x4ea50b
jmp 0x4ea3f9
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.00461950
mov al, byte [ebp - 0x66]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x2c