Function at 0x5312d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0x30]
mov byte [eax], 0
mov ecx, dword [ebp + 0x34]
mov byte [ecx], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0042f580
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x40], ecx
push 0x6c599c
push 0x6c59a0
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0042d790
push 0x6c599d
push 0x6c59a8
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0042d790
push 0x2f
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0042a520
push 0x3a
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0042a520
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0042a300
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.004f7330
test eax, eax
jne 0x53138a
push 0x6c59b4
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov eax, dword [ebp + 8]
push eax
push 0x6c59ec
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x2c]
call eax
xor al, al
jmp 0x5315bf
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.00429f80
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 0
je 0x5313af
mov ecx, dword [ebp - 0x14]
push ecx
push 0x6c59f8
mov ecx, dword [ebp + 0x1c]
call fcn.0045de50
cmp dword [ebp + 0x14], 0
je 0x5313bb
cmp dword [ebp + 0x1c], 0
jne 0x53141d
push 0x20
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.0061e3e0
add esp, 0xc
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x4c]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x48]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x44]
mov dword [edx + 0x58], 0
mov eax, dword [ebp - 0x44]
add eax, 0x58
push eax
mov ecx, dword [ebp + 0x18]
push ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004d83e0
add esp, 0x14
jmp 0x5315bf
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x1c]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x44]
mov byte [eax + 8], 1
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x20]
mov dword [ecx + 0x4c], edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0x24]
mov dword [eax + 0x48], ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 0x28]
mov dword [edx + 0x54], eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x2c]
mov dword [ecx + 0x50], edx
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x58], 0
mov ecx, dword [ebp - 0x44]
mov byte [ecx + 0x44], 0
push 0x3e9
mov ecx, dword [ebp - 0x44]
call fcn.00531f80
call fcn.004436a0
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0x5315d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5314bb
push str.Failed_to_start_background_thread_for_resolving_domain_name.
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5315bf
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Resolving_domain_name__IPV4_IPV6_...
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x18]
call edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x5315b9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xc8
jle 0x531512
push 0xa
call fcn.00443690
add esp, 4
jmp 0x53151c
push 2
call fcn.00443690
add esp, 4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jb 0x5315b4
mov dword [ebp - 8], 0
push 0x74
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.0045e020
mov ecx, dword [ebp + 0x1c]
call fcn.0045dd10
movzx eax, al
test eax, eax
je 0x531571
mov ecx, dword [ebp + 0x30]
mov byte [ecx], 1
push 0x6c5a70
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x5315bf
cmp dword [ebp + 0x10], 0
je 0x5315b4
call fcn.004436a0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 4]
jbe 0x5315b4
mov ecx, dword [ebp - 0x3c]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
cmp edx, dword [ebp + 0x10]
jbe 0x5315b4
push str.Timeout_in_resolving_domain_name.
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0x34]
mov byte [ecx], 1
xor al, al
jmp 0x5315bf
jmp 0x5314e5
mov edx, dword [ebp - 0x44]
mov al, byte [edx + 0x44]
mov esp, ebp
pop ebp
ret 0x30