Function at 0x101e960
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x31c
push ebx
push edi
xor ebx, ebx
push 0x7f02
push ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.0101c617
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x280], ebx
je 0x101e99b
cmp dword [ebp + 8], ebx
jne 0x101e9a3
push 0xd
pop edi
jmp 0x101ec74
cmp dword [edi + 0x290], ebx
push esi
jne 0x101ebcb
push ebx
push ebx
push 0x200
lea eax, [ebp - 0x21c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push 0x220
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
jne 0x101e9e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x101ec73
shr eax, 1
mov word [ebp + eax*2 - 0x21c], bx
lea eax, [ebp - 0x21c]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x101e9d3
cmp word [eax + 8], 2
jne 0x101ec02
cmp word [eax + 0xa], 4
jne 0x101ec02
mov eax, dword [eax + 0xc]
xor esi, esi
cmp dword [eax], ebx
mov dword [ebp - 0x14], esi
je 0x101ea2a
add eax, 4
inc esi
cmp dword [eax], ebx
jne 0x101ea1f
mov dword [ebp - 0x14], esi
mov eax, esi
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x101ea46
push 0xe
pop edi
jmp 0x101ec59
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
jmp 0x101ea58
mov ecx, dword [ecx]
mov dword [eax], ecx
add eax, 4
add edx, 4
mov ecx, dword [edx]
cmp ecx, ebx
jne 0x101ea4e
mov eax, esi
imul eax, eax, 0x29c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x101ea3e
cmp esi, ebx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x10], ebx
jbe 0x101ebbc
lea esi, [eax + 0x280]
push 2
push 4
push dword [ebp - 0x10]
call sub.WSOCK32.dll_gethostbyaddr
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x101eb2e
mov eax, dword [eax]
mov dword [ebp - 8], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x101eaab
sub eax, edx
inc eax
cmp eax, 0x80
ja 0x101eb2e
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 8]
call fcn.01018d3a
test eax, eax
pop ecx
pop ecx
je 0x101eb2e
mov eax, dword [ebp + 0xc]
push 0x2e
push dword [eax]
call fcn.01019700
mov dword [ebp - 8], eax
lea eax, [ebp - 0x21c]
push 0x2e
push eax
call fcn.01019700
mov ecx, dword [ebp - 8]
add esp, 0x10
cmp ecx, ebx
jne 0x101eb06
cmp eax, ebx
je 0x101eb4a
lea ecx, [ebp - 0x21c]
sub eax, ecx
jmp 0x101eb11
cmp eax, ebx
jne 0x101eb4a
mov eax, dword [ebp + 0xc]
sub ecx, dword [eax]
mov eax, ecx
cmp eax, ebx
je 0x101eb4a
push eax
lea eax, [ebp - 0x21c]
push eax
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.01018da3
add esp, 0xc
test eax, eax
jne 0x101eb4a
mov eax, dword [ebp - 0x10]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
lea edx, [ebp - 0x31c]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x101eb3e
jmp 0x101eb5f
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
lea edx, [ebp - 0x31c]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x101eb55
push 0x100
lea eax, [esi - 0x280]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x31c]
push eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x101ebf8
add dword [ebp - 0x10], 4
lea ecx, [esi - 0x280]
mov word [ecx + eax*2], bx
mov word [esi - 0x80], bx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
add esi, 0x29c
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x101ea8c
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 0x14]
mov dword [edi + 0x290], eax
mov dword [edi + 0x28c], esi
mov dword [ebp - 4], ebx
mov esi, dword [edi + 0x290]
push 0x297
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi + 0x28c], ebx
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x298]
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ebx
jbe 0x101ec3a
jmp 0x101ec0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x101ec59
push 0xd
pop edi
jmp 0x101ec73
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
push 2
push esi
push eax
push esi
push dword [ebp - 8]
mov dword [esi + 0x294], eax
call fcn.0101e38a
mov dword [esi + 0x298], eax
add esi, 0x29c
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
cmp eax, dword [edi + 0x28c]
jb 0x101ec07
xor esi, esi
inc esi
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x28c]
mov dword [edi + 0x284], esi
mov dword [ebp - 0x18], eax
xor edi, edi
cmp dword [ebp - 0xc], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x101ec69
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 4], ebx
je 0x101ec73
push dword [ebp - 4]
call esi
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7f00
push ebx
call fcn.0101c617
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, dword [ebp - 0x18]
pop edi
pop ebx
leave
ret 0x10