Function at 0x595100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp + 0x24]
mov byte [eax], 0
mov ecx, dword [ebp + 0x28]
mov byte [ecx], 0
mov ecx, dword [ebp + 0x1c]
call fcn.004ea9a0
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004ee6a0
push 0x6b51ef
push str.http:__
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004ed6f0
push 0x6b5201
push str.https:__
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004ed6f0
push 0x2f
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004ea670
push 0x3a
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004ea670
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004ea2e0
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.004e9da0
test eax, eax
jne 0x5951c2
push str.Invalid_hostname_for_resolving_hostname_to_IP_address.
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 + 8]
push ecx
push str.hostname
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x2c]
call edx
xor al, al
jmp 0x5954b4
mov ecx, dword [ebp - 0x44]
add ecx, 0x28
call fcn.005d1cb0
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x18], 0
je 0x5951e7
mov eax, dword [ebp - 0x14]
push eax
push str.HostnameResolve
mov ecx, dword [ebp + 0x18]
call fcn.005209f0
mov ecx, dword [ebp - 0x14]
push ecx
push str.dnsCacheLookup
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x2c]
call edx
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00594b10
add esp, 8
mov byte [ebp - 0xd], al
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x5952c2
mov ecx, dword [ebp + 0x1c]
call fcn.004e9da0
test eax, eax
je 0x5952c2
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
push str._d._d._d._d
mov ecx, dword [ebp + 0x1c]
call fcn.005d1cb0
push eax
call sub.MSVCR90.dll_sscanf
add esp, 0x18
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 4
jne 0x5952c2
mov ecx, dword [ebp + 0x20]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x20]
mov byte [edx], al
mov ecx, dword [ebp - 0x30]
mov dl, byte [ebp - 0x2c]
mov byte [ecx + 1], dl
mov eax, dword [ebp - 0x30]
mov cl, byte [ebp - 0x28]
mov byte [eax + 2], cl
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x24]
mov byte [edx + 3], al
cmp dword [ebp + 0x18], 0
je 0x5952a0
mov ecx, dword [ebp + 0x1c]
call fcn.005d1cb0
push eax
push 0x6b5394
mov ecx, dword [ebp + 0x18]
call fcn.005209f0
mov ecx, dword [ebp + 0x1c]
call fcn.005d1cb0
push eax
push str.dnsCacheHit
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x2c]
call eax
mov al, 1
jmp 0x5954b4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x18]
mov dword [ecx + 0x9c], edx
mov eax, dword [ebp - 0x44]
mov byte [eax + 0x114], 1
mov ecx, dword [ebp - 0x44]
call fcn.004dca50
call fcn.004f3ed0
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp - 0x44]
push edx
push 0x5954c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x595314
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
setne cl
mov byte [ebp - 0x15], cl
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x59533f
push str.Failed_to_start_background_thread_for_resolving_IPV4_domain_name.
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5954b4
push str.Resolving_domain_name__IPV4_
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x18]
call eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x44]
movzx edx, byte [ecx + 0x114]
test edx, edx
je 0x59542d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc8
jle 0x595398
push 0xa
call fcn.004f3ec0
add esp, 4
mov ecx, dword [ebp - 0xc]
add ecx, 0xa
mov dword [ebp - 0xc], ecx
jmp 0x5953ab
push 2
call fcn.004f3ec0
add esp, 4
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
cmp dword [ebp + 0x18], 0
je 0x5953f4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [eax + 0x88]
jb 0x5953f4
mov dword [ebp - 0xc], 0
mov ecx, dword [ebp + 0x18]
call fcn.00520b70
movzx edx, al
test edx, edx
je 0x5953f4
mov eax, dword [ebp + 0x24]
mov byte [eax], 1
push str.DNS_lookup_aborted_by_application_callback
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx + 0x14]
call eax
xor al, al
jmp 0x5954b4
cmp dword [ebp + 0x10], 0
je 0x595428
call fcn.004f3ed0
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 4]
jbe 0x595428
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 4]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp + 0x10]
jbe 0x595428
mov ecx, dword [ebp + 0x28]
mov byte [ecx], 1
xor al, al
jmp 0x5954b4
jmp 0x59535f
mov edx, dword [ebp - 0x44]
add edx, 0xa0
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.004ee910
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 0x118]
mov dword [eax], edx
mov ecx, dword [ebp + 0x1c]
call fcn.004e9da0
test eax, eax
je 0x59546e
mov ecx, dword [ebp + 0x1c]
call fcn.005d1cb0
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0054d970
add esp, 8
cmp dword [ebp + 0x18], 0
je 0x595496
mov ecx, dword [ebp + 0x1c]
call fcn.004e9da0
test eax, eax
je 0x595496
mov ecx, dword [ebp + 0x1c]
call fcn.005d1cb0
push eax
push str.ResolvedToIp
mov ecx, dword [ebp + 0x18]
call fcn.005209f0
mov ecx, dword [ebp + 0x1c]
push ecx
push str.resolvedToIp
mov ecx, dword [ebp + 0x14]
call fcn.004f5070
mov ecx, dword [ebp + 0x1c]
call fcn.004e9da0
test eax, eax
setne al
mov esp, ebp
pop ebp
ret 0x24