Function at 0x4b4cd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6019e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], eax
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
push edi
mov edi, 1
test ebx, ebx
je 0x4b4d0d
xorps xmm0, xmm0
movups xmmword [ebx], xmm0
movq qword [ebx + 0x10], xmm0
mov dword [ebx + 0x18], eax
cmp byte [esi], 0x5b
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x3c], eax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 6
jne 0x4b4d60
push 0x1000
push esi
call fcn.0058d536
add esp, 8
mov edi, eax
call fcn.00585a60
mov esi, esp
lea eax, [edi - 2]
push eax
mov eax, dword [ebp - 0xc]
mov edx, edi
inc eax
mov ecx, esi
push eax
call fcn.00401000
mov byte [esi + edi - 2], 0
add esp, 8
mov edi, 1
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test esi, esi
jne 0x4b4d72
mov dword [ebp - 0x10], 0
jmp 0x4b4d91
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x4b4d9d
mov dword [ebp - 0x14], ecx
jmp 0x4b4db7
push 0
push 0
push 0xffffffffffffffff
push ecx
push 0
push 0xfde9
call eax
lea eax, [eax*2 + 2]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x4b4dc3
mov dword [ebp - 0x18], eax
jmp 0x4b4dcb
call fcn.00585a60
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b4dd7
mov dword [ebp - 0xc], eax
jmp 0x4b4ddf
call fcn.00585a60
mov dword [ebp - 0xc], esp
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b4dfb
mov eax, dword [ebp - 0x10]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x4b4e19
mov eax, dword [ebp - 0x14]
push eax
push esi
push 0xffffffffffffffff
push dword [ebp - 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
push esi
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov esi, eax
test esi, esi
je 0x4b4e55
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4b4e3f
push ecx
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, esi
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
test esi, esi
jne 0x4b4e73
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005852a8
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x4b4ea7
mov eax, dword [esi + 4]
cmp eax, 2
je 0x4b4e84
cmp eax, 0x17
jne 0x4b4ea0
push dword [esi + 0x10]
mov edx, 0x1c
mov ecx, ebx
push dword [esi + 0x18]
call fcn.00401000
inc dword [ebp - 0x1c]
add esp, 8
add ebx, 0x1c
dec edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4b4e73
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005852a8
mov esp, ebp
pop ebp
ret