Function at 0x581e40
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.00480020
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x40], ecx
push 0x6878c4
push 0x6878c8
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047e230
push 0x6878c5
push 0x6878d0
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047e230
push 0x2f
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047afc0
push 0x3a
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047afc0
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047ada0
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047aa30
test eax, eax
jne 0x581efa
push 0x6878dc
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 0x687914
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 0x58212f
mov ecx, dword [ebp - 0x44]
add ecx, 0x18
call fcn.0047aa10
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 0
je 0x581f1f
mov ecx, dword [ebp - 0x14]
push ecx
push 0x687920
mov ecx, dword [ebp + 0x1c]
call fcn.004ae990
cmp dword [ebp + 0x14], 0
je 0x581f2b
cmp dword [ebp + 0x1c], 0
jne 0x581f8d
push 0x20
push 0
lea edx, [ebp - 0x38]
push edx
call fcn.005e5290
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.00526690
add esp, 0x14
jmp 0x58212f
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.00582af0
call fcn.00494160
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x44]
push eax
push 0x582140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x58202b
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 0x58212f
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 0x582129
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xc8
jle 0x582082
push 0xa
call fcn.00494150
add esp, 4
jmp 0x58208c
push 2
call fcn.00494150
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 0x582124
mov dword [ebp - 8], 0
push 0x74
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.004aeb60
mov ecx, dword [ebp + 0x1c]
call fcn.004ae850
movzx eax, al
test eax, eax
je 0x5820e1
mov ecx, dword [ebp + 0x30]
mov byte [ecx], 1
push 0x687998
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 0x58212f
cmp dword [ebp + 0x10], 0
je 0x582124
call fcn.00494160
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 4]
jbe 0x582124
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 0x582124
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 0x58212f
jmp 0x582055
mov edx, dword [ebp - 0x44]
mov al, byte [edx + 0x44]
mov esp, ebp
pop ebp
ret 0x30