Function at 0x102081c
Capabilities:
Resolve dns

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [0x1025ce0]
push ebx
push edi
xor ebx, ebx
push 0x7f02
push ebx
mov dword [ebp + 0x29c], eax
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x74], ebx
call fcn.0101e44d
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov edi, dword [ebp + 0x2b0]
cmp dword [edi + 0x280], ebx
je 0x102086d
cmp dword [ebp + 0x2a8], ebx
jne 0x1020875
push 0xd
pop edi
jmp 0x1020b68
cmp dword [edi + 0x290], ebx
push esi
jne 0x1020ab0
push ebx
push ebx
push 0x200
lea eax, [ebp + 0x9c]
push eax
push 0xffffffffffffffff
push dword [ebp + 0x2ac]
push 0x220
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
jne 0x10208b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1020b67
shr eax, 1
mov word [ebp + eax*2 + 0x9c], bx
lea eax, [ebp + 0x9c]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
mov dword [ebp - 0x68], eax
je 0x10208a8
cmp word [eax + 8], 2
jne 0x1020aed
cmp word [eax + 0xa], 4
jne 0x1020aed
mov eax, dword [eax + 0xc]
xor esi, esi
cmp dword [eax], ebx
mov dword [ebp + 0x2ac], esi
je 0x1020905
add eax, 4
inc esi
cmp dword [eax], ebx
jne 0x10208f7
mov dword [ebp + 0x2ac], esi
mov eax, esi
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x7c], eax
jne 0x1020921
push 0xe
pop edi
jmp 0x1020b4d
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0xc]
jmp 0x1020933
mov ecx, dword [ecx]
mov dword [eax], ecx
add eax, 4
add edx, 4
mov ecx, dword [edx]
cmp ecx, ebx
jne 0x1020929
mov eax, esi
imul eax, eax, 0x29c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x6c], eax
je 0x1020919
cmp esi, ebx
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x68], ecx
mov dword [ebp + 0x2b0], ebx
jbe 0x1020aa1
lea esi, [eax + 0x280]
push 2
push 4
push dword [ebp - 0x68]
call sub.WSOCK32.dll_gethostbyaddr
cmp eax, ebx
mov dword [ebp - 0x78], eax
je 0x1020a0c
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1020989
sub eax, edx
inc eax
cmp eax, 0x80
ja 0x1020a0c
lea eax, [ebp + 0x9c]
push eax
push dword [ebp - 0x70]
call fcn.0101a4ee
test eax, eax
pop ecx
pop ecx
je 0x1020a0c
mov eax, dword [ebp - 0x78]
push 0x2e
push dword [eax]
call fcn.0101aec0
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x9c]
push 0x2e
push eax
call fcn.0101aec0
mov ecx, dword [ebp - 0x70]
add esp, 0x10
cmp ecx, ebx
jne 0x10209e4
cmp eax, ebx
je 0x1020a25
lea ecx, [ebp + 0x9c]
sub eax, ecx
jmp 0x10209ef
cmp eax, ebx
jne 0x1020a25
mov eax, dword [ebp - 0x78]
sub ecx, dword [eax]
mov eax, ecx
cmp eax, ebx
je 0x1020a25
push eax
lea eax, [ebp + 0x9c]
push eax
mov eax, dword [ebp - 0x78]
push dword [eax]
call fcn.0101a557
add esp, 0xc
test eax, eax
jne 0x1020a25
mov eax, dword [ebp - 0x68]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
lea edx, [ebp - 0x64]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x1020a19
jmp 0x1020a37
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x64]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x1020a2d
push 0x100
lea eax, [esi - 0x280]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x64]
push eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1020ae3
add dword [ebp - 0x68], 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 + 0x2b0]
mov eax, dword [ebp + 0x2b0]
cmp eax, dword [ebp + 0x2ac]
jb 0x102096a
mov eax, dword [ebp - 0x6c]
mov esi, dword [ebp + 0x2ac]
mov dword [edi + 0x290], eax
mov dword [edi + 0x28c], esi
mov dword [ebp - 0x6c], ebx
mov esi, dword [edi + 0x290]
push 0x297
push dword [ebp + 0x2a8]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi + 0x28c], ebx
mov dword [ebp - 0x74], eax
mov eax, dword [edi + 0x298]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x2b0], ebx
jbe 0x1020b2b
jmp 0x1020af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1020b4d
push 0xd
pop edi
jmp 0x1020b67
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x80]
push 2
push esi
push eax
push esi
push dword [ebp - 0x74]
mov dword [esi + 0x294], eax
call fcn.01020202
mov dword [esi + 0x298], eax
add esi, 0x29c
inc dword [ebp + 0x2b0]
mov eax, dword [ebp + 0x2b0]
cmp eax, dword [edi + 0x28c]
jb 0x1020af2
xor esi, esi
inc esi
push esi
push ebx
push dword [ebp + 0x2a8]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x28c]
mov dword [edi + 0x284], esi
mov dword [ebp - 0x74], eax
xor edi, edi
cmp dword [ebp - 0x7c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1020b5d
push dword [ebp - 0x7c]
call esi
cmp dword [ebp - 0x6c], ebx
je 0x1020b67
push dword [ebp - 0x6c]
call esi
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7f00
push ebx
call fcn.0101e44d
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp + 0x29c]
mov eax, dword [ebp - 0x74]
pop edi
pop ebx
call fcn.0101339b
add ebp, 0x2a0
leave
ret 0x10