Function at 0x4b4530
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6009e4]
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 0x4b456d
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 0x4b45c0
push 0x1000
push esi
call fcn.0058cca6
add esp, 8
mov edi, eax
call fcn.005851e0
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 0x4b45d2
mov dword [ebp - 0x10], 0
jmp 0x4b45f1
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 0x4b45fd
mov dword [ebp - 0x14], ecx
jmp 0x4b4617
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 0x4b4623
mov dword [ebp - 0x18], eax
jmp 0x4b462b
call fcn.005851e0
mov dword [ebp - 0x18], esp
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b4637
mov dword [ebp - 0xc], eax
jmp 0x4b463f
call fcn.005851e0
mov dword [ebp - 0xc], esp
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4b465b
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 0x4b4679
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 0x4b46b5
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4b469f
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.00584a28
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
test esi, esi
jne 0x4b46d3
or eax, 0xffffffff
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00584a28
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x4b4707
mov eax, dword [esi + 4]
cmp eax, 2
je 0x4b46e4
cmp eax, 0x17
jne 0x4b4700
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 0x4b46d3
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.00584a28
mov esp, ebp
pop ebp
ret