Function at 0x48c829
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x6d1d44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1c], edx
mov esi, ecx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], ebx
test edi, edi
je 0x48c85c
cmp dword [ebp + 0xc], ebx
jle 0x48c85c
push 7
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
push 8
xor eax, eax
lea edi, [ebp - 0x3c]
cmp byte [esi], 0x5b
pop ecx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 6
jne 0x48c8b9
push 0x1000
push esi
call fcn.005f01d0
pop ecx
pop ecx
mov esi, eax
call fcn.005b9800
mov edi, esp
cmp esi, 2
jge 0x48c89f
or eax, 0xffffffff
jmp 0x48ca20
lea eax, [esi - 2]
mov edx, esi
push eax
mov eax, dword [ebp - 0xc]
mov ecx, edi
inc eax
push eax
call section..text
pop ecx
mov byte [edi + esi - 2], bl
mov esi, edi
pop ecx
test esi, esi
jne 0x48c8c4
mov edi, ebx
mov dword [ebp - 0xc], ebx
jmp 0x48c8df
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edi, [eax*2 + 2]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x48c8eb
mov dword [ebp - 0x10], ebx
jmp 0x48c906
push ebx
push ebx
push 0xffffffffffffffff
push eax
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x10], eax
test edi, edi
jne 0x48c90f
mov dword [ebp - 0x14], ebx
jmp 0x48c919
mov eax, edi
call fcn.005b9800
mov dword [ebp - 0x14], esp
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x48c924
mov edi, ebx
jmp 0x48c92b
call fcn.005b9800
mov edi, esp
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x48c945
push dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x48c960
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
push eax
push edi
push 0xffffffffffffffff
push edx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x14]
push edi
push eax
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
je 0x48c98c
cmp dword [ebp - 8], ebx
je 0x48c985
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
xor eax, eax
jmp 0x48ca20
mov esi, dword [ebp - 8]
test esi, esi
je 0x48c897
mov eax, esi
cmp dword [eax + 4], 2
je 0x48c9a5
cmp dword [eax + 4], 0x17
jne 0x48c9a6
inc ebx
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x48c999
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
push eax
pop ebx
test edi, edi
je 0x48c9dc
test ecx, ecx
jne 0x48c9dc
imul ecx, dword [ebp - 0x18], 0x1c
xor edx, edx
push ebx
push ebx
call fcn.00484ef6
mov esi, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi], eax
mov edi, eax
mov dword [ebp + 0xc], ecx
test esi, esi
je 0x48ca17
test ecx, ecx
jle 0x48ca14
cmp dword [esi + 4], 2
je 0x48c9f0
cmp dword [esi + 4], 0x17
jne 0x48ca0d
push dword [esi + 0x10]
mov ecx, edi
push dword [esi + 0x18]
push 0x1c
pop edx
call section..text
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
inc ebx
add edi, 0x1c
dec ecx
mov dword [ebp + 0xc], ecx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x48c9e0
mov esi, dword [ebp - 8]
push esi
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b8900
mov esp, ebp
pop ebp
ret