Function at 0x47e7b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x62aabc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 1
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x5c], ebx
jb 0x47eabd
test eax, eax
je 0x47eabd
test ecx, ecx
je 0x47eabd
mov dword [ebp - 0x64], 0
test ebx, ebx
je 0x47e802
mov dword [ebp - 0x58], ebx
jmp 0x47e829
cmp dword [ecx + 4], 1
mov eax, dword [ecx + 0x70]
jne 0x47e817
mov edx, 0x56585c
mov edi, 0x565860
jmp 0x47e821
mov edx, str.https
mov edi, str.http
test eax, eax
cmove edx, edi
mov dword [ebp - 0x58], edx
test esi, esi
jne 0x47e837
mov esi, dword [ecx + 0x14]
test esi, esi
jne 0x47e837
mov esi, dword [ecx + 0x1c]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x60], eax
test eax, eax
jg 0x47e847
mov eax, dword [ecx + 0x6c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x50], 0x50
test esi, esi
je 0x47eabd
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47e860
sub ecx, edx
lea eax, [ecx*2 + 1]
add eax, ecx
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edx, eax
add esp, 4
mov dword [ebp - 0x54], edx
test edx, edx
je 0x47eabd
mov eax, dword [ebp - 0x48]
mov edi, edx
dec eax
add eax, edx
cmp byte [esi], 0
mov dword [ebp - 0x48], eax
je 0x47e909
mov ebx, eax
nop
cmp edi, ebx
jae 0x47e903
movzx eax, byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isalnum]
add esp, 4
test eax, eax
jne 0x47e8f8
movsx eax, byte [esi]
push eax
push dword [0x627e24]
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x47e8f8
lea edx, [edi + 2]
cmp edx, ebx
jae 0x47e903
mov ecx, dword [0x627e28]
mov byte [edi], 0x25
movzx eax, byte [esi]
shr eax, 4
movzx eax, byte [eax + ecx]
mov byte [edi + 1], al
mov edi, edx
movzx eax, byte [esi]
and eax, 0xf
movzx eax, byte [eax + ecx]
mov byte [edx], al
jmp 0x47e8fc
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x47e8a0
mov ebx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x54]
xor eax, eax
mov byte [edi], 0
xor esi, esi
cmp byte [edx], al
je 0x47e963
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
xor ebx, ebx
mov dword [ebp - 0x48], eax
nop
push 3
lea edi, [esi + edx]
push 0x565864
push edi
call eax
mov edx, eax
add esp, 0xc
mov cl, 0x2f
test edx, edx
je 0x47e93a
mov cl, byte [edi]
xor eax, eax
test edx, edx
mov edx, dword [ebp - 0x54]
sete al
mov byte [ebx + edx], cl
inc ebx
lea eax, [eax*2 + 1]
add esi, eax
mov eax, dword [ebp - 0x48]
cmp byte [esi + edx], 0
jne 0x47e920
mov dword [ebp - 0x48], ebx
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
mov byte [eax + edx], 0
test ebx, ebx
je 0x47e9fe
mov ecx, str.https
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x47e996
test dl, dl
je 0x47e992
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x47e996
add eax, 2
add ecx, 2
test dl, dl
jne 0x47e976
xor eax, eax
jmp 0x47e99b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47e9cd
mov eax, 0x56585c
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x47e9c4
test cl, cl
je 0x47e9c0
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x47e9c4
add ebx, 2
add eax, 2
test cl, cl
jne 0x47e9a4
xor eax, eax
jmp 0x47e9c9
sbb eax, eax
or eax, 1
test eax, eax
jne 0x47e9d4
mov dword [ebp - 0x50], 0x1bb
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x4ac]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x47ea17
push 0x564ccc
push eax
call fcn.00481370
add esp, 8
test eax, eax
jne 0x47ea17
lea edi, [eax + 1]
jmp 0x47ea19
mov ebx, dword [ebp - 0x4c]
mov ecx, 0x50
mov eax, 0x1bb
cmp dword [ebx + 0x70], 0
cmovne ecx, eax
mov dword [ebp - 0x50], ecx
jmp 0x47e9d7
xor edi, edi
mov eax, dword [ebx + 0x4ac]
mov esi, dword [eax + 0x84]
mov eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x50]
je 0x47ea41
push eax
lea eax, [ebp - 0x14]
push 0x565868
push eax
call fcn.004064e0
add esp, 0xc
jmp 0x47ea45
mov byte [ebp - 0x14], 0
test edi, edi
je 0x47ea4d
test esi, esi
jne 0x47ea79
lea eax, [ebx + 0x4b8]
mov byte [ebp - 0x44], 0
test eax, eax
je 0x47ea76
cmp word [eax], 2
jne 0x47ea76
push 2
push 0
push 0
push 0x30
lea ecx, [ebp - 0x44]
push ecx
push 0x10
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
lea esi, [ebp - 0x44]
mov edi, dword [ebp - 0x54]
lea eax, [ebp - 0x14]
push edi
push eax
push esi
push dword [ebp - 0x58]
lea eax, [ebp - 0x64]
push str._s:___s_s_s
push dword [ebp + 0x10]
push dword [ebp - 0x68]
push eax
push ebx
call fcn.00480840
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x28
cmp dword [ebp - 0x64], 0
jne 0x47eabd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f742
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054f742
mov esp, ebp
pop ebp
ret