Function at 0x465fd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x51df40]
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 - 0x64], eax
mov dword [ebp - 0x5c], ebx
jb 0x4662b9
test eax, eax
je 0x4662b9
test ecx, ecx
je 0x4662b9
mov dword [ebp - 0x60], 0
test ebx, ebx
je 0x466022
mov dword [ebp - 0x54], ebx
jmp 0x466049
cmp dword [ecx + 4], 1
mov eax, dword [ecx + 0x70]
jne 0x466037
mov edx, 0x4e6850
mov edi, 0x4e6854
jmp 0x466041
mov edx, str.https
mov edi, str.http
test eax, eax
cmove edx, edi
mov dword [ebp - 0x54], edx
test esi, esi
jne 0x466057
mov esi, dword [ecx + 0x14]
test esi, esi
jne 0x466057
mov esi, dword [ecx + 0x1c]
mov eax, dword [ebp + 0x18]
test eax, eax
jg 0x466064
mov eax, dword [ecx + 0x6c]
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x50], 0x50
test esi, esi
je 0x4662b9
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x466078
sub ecx, edx
lea eax, [ecx*2 + 1]
add eax, ecx
push eax
mov dword [ebp - 0x58], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4662b9
mov ecx, dword [ebp - 0x58]
mov edi, eax
dec ecx
add ecx, eax
cmp byte [esi], 0
mov dword [ebp - 0x58], ecx
je 0x46611d
mov ebx, ecx
cmp edi, ebx
jae 0x466117
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 0x46610c
movsx eax, byte [esi]
push eax
push dword [0x51d960]
call sub.VCRUNTIME140.dll_strchr
add esp, 8
test eax, eax
jne 0x46610c
lea edx, [edi + 2]
cmp edx, ebx
jae 0x466117
mov ecx, dword [0x51d964]
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 0x466110
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
cmp byte [esi], 0
jne 0x4660b4
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x48]
mov byte [edi], 0
xor edi, edi
cmp byte [eax], 0
je 0x46615c
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
mov esi, eax
nop
push 3
push 0x4e6860
push esi
call ebx
add esp, 0xc
test eax, eax
jne 0x466148
add esi, 3
mov al, 0x2f
jmp 0x46614b
mov al, byte [esi]
inc esi
mov ecx, dword [ebp - 0x48]
mov byte [edi + ecx], al
inc edi
cmp byte [esi], 0
jne 0x466130
mov ebx, dword [ebp - 0x5c]
mov eax, ecx
mov byte [edi + eax], 0
test ebx, ebx
je 0x4661fa
mov ecx, str.https
mov eax, ebx
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x466190
test dl, dl
je 0x46618c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x466190
add eax, 2
add ecx, 2
test dl, dl
jne 0x466170
xor eax, eax
jmp 0x466195
sbb eax, eax
or eax, 1
test eax, eax
je 0x4661c9
mov eax, 0x4e6850
nop
mov cl, byte [ebx]
cmp cl, byte [eax]
jne 0x4661c0
test cl, cl
je 0x4661bc
mov cl, byte [ebx + 1]
cmp cl, byte [eax + 1]
jne 0x4661c0
add ebx, 2
add eax, 2
test cl, cl
jne 0x4661a0
xor eax, eax
jmp 0x4661c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4661d0
mov dword [ebp - 0x50], 0x1bb
mov ebx, dword [ebp - 0x4c]
mov eax, dword [ebx + 0x4ac]
mov eax, dword [eax + 0x88]
test eax, eax
je 0x466213
push 0x4e5c78
push eax
call fcn.00468be0
add esp, 8
test eax, eax
jne 0x466213
lea edi, [eax + 1]
jmp 0x466215
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 0x4661d3
xor edi, edi
mov eax, dword [ebx + 0x4ac]
mov esi, dword [eax + 0x84]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x50]
je 0x46623d
push eax
lea eax, [ebp - 0x14]
push 0x4e6864
push eax
call fcn.00404950
add esp, 0xc
jmp 0x466241
mov byte [ebp - 0x14], 0
test edi, edi
je 0x466249
test esi, esi
jne 0x466275
lea eax, [ebx + 0x4b8]
mov byte [ebp - 0x44], 0
test eax, eax
je 0x466272
cmp word [eax], 2
jne 0x466272
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 - 0x48]
lea eax, [ebp - 0x14]
push edi
push eax
push esi
push dword [ebp - 0x54]
lea eax, [ebp - 0x60]
push str._s:___s_s_s
push dword [ebp + 0x10]
push dword [ebp - 0x64]
push eax
push ebx
call fcn.004680c0
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x28
cmp dword [ebp - 0x60], 0
jne 0x4662b9
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
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.004d3ed5
mov esp, ebp
pop ebp
ret