Function at 0x10229bc
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x1027ce4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push 0x7f02
push ebx
mov dword [ebp - 0x32c], ecx
mov dword [ebp - 0x328], esi
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x320], ebx
call fcn.010200aa
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [edi + 0x280], ebx
je 0x1022ced
cmp esi, ebx
je 0x1022ced
cmp dword [edi + 0x290], ebx
jne 0x1022caa
push ebx
push ebx
push 0x200
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x310]
push 0x220
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, ebx
je 0x1022a79
shr eax, 1
mov word [ebp + eax*2 - 0x204], bx
lea eax, [ebp - 0x204]
push eax
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
mov dword [ebp - 0x30c], eax
jne 0x1022a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1022d82
cmp word [eax + 8], 2
jne 0x1022ced
cmp word [eax + 0xa], 4
jne 0x1022ced
mov eax, dword [eax + 0xc]
xor esi, esi
cmp dword [eax], ebx
mov dword [ebp - 0x310], esi
je 0x1022ab9
add eax, 4
inc esi
cmp dword [eax], ebx
jne 0x1022aab
mov dword [ebp - 0x310], esi
mov eax, esi
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x324], eax
jne 0x1022ad8
push 0xe
pop edi
jmp 0x1022d5c
mov ecx, dword [ebp - 0x30c]
mov edx, dword [ecx + 0xc]
jmp 0x1022aed
mov ecx, dword [ecx]
mov dword [eax], ecx
add eax, 4
add edx, 4
mov ecx, dword [edx]
cmp ecx, ebx
jne 0x1022ae3
mov eax, esi
imul eax, eax, 0x29c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebx
mov dword [ebp - 0x318], eax
je 0x1022ad0
cmp esi, ebx
mov ecx, dword [ebp - 0x324]
mov dword [ebp - 0x30c], ecx
mov dword [ebp - 0x308], ebx
jbe 0x1022c98
lea esi, [eax + 0x280]
push 2
push 4
push dword [ebp - 0x30c]
call sub.WSOCK32.dll_gethostbyaddr
cmp eax, ebx
mov dword [ebp - 0x31c], eax
je 0x1022bee
mov eax, dword [eax]
mov dword [ebp - 0x314], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1022b55
sub eax, edx
inc eax
cmp eax, 0x80
ja 0x1022bee
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x314]
call fcn.0101b92f
test eax, eax
pop ecx
pop ecx
je 0x1022bee
mov eax, dword [ebp - 0x31c]
push 0x2e
push dword [eax]
call fcn.0101c380
mov dword [ebp - 0x314], eax
lea eax, [ebp - 0x204]
push 0x2e
push eax
call fcn.0101c380
mov ecx, dword [ebp - 0x314]
add esp, 0x10
cmp ecx, ebx
jne 0x1022bc0
cmp eax, ebx
je 0x1022c0d
lea ecx, [ebp - 0x204]
sub eax, ecx
jmp 0x1022bce
cmp eax, ebx
jne 0x1022c0d
mov eax, dword [ebp - 0x31c]
sub ecx, dword [eax]
mov eax, ecx
cmp eax, ebx
je 0x1022c0d
push eax
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x31c]
push dword [eax]
call fcn.0101b99f
add esp, 0xc
test eax, eax
jne 0x1022c0d
mov eax, dword [ebp - 0x30c]
push dword [eax]
call sub.WSOCK32.dll_inet_ntoa
lea edx, [ebp - 0x304]
mov cl, byte [eax]
inc eax
mov byte [edx], cl
inc edx
cmp cl, bl
jne 0x1022c01
jmp 0x1022c25
mov eax, dword [ebp - 0x31c]
mov ecx, dword [eax]
lea edx, [ebp - 0x304]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
cmp al, bl
jne 0x1022c1b
push 0x100
lea eax, [esi - 0x280]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x304]
push eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1022ce3
add dword [ebp - 0x30c], 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 - 0x308]
mov eax, dword [ebp - 0x308]
cmp eax, dword [ebp - 0x310]
jb 0x1022b2d
mov eax, dword [ebp - 0x318]
mov esi, dword [ebp - 0x310]
mov dword [edi + 0x290], eax
mov dword [edi + 0x28c], esi
mov dword [ebp - 0x318], ebx
mov esi, dword [edi + 0x290]
push 0x297
push dword [ebp - 0x328]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [edi + 0x28c], ebx
mov dword [ebp - 0x320], eax
mov eax, dword [edi + 0x298]
mov dword [ebp - 0x314], eax
mov dword [ebp - 0x308], ebx
jbe 0x1022d37
jmp 0x1022cfb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1022d5c
push 0xd
pop edi
jmp 0x1022d82
mov eax, dword [ebp - 0x314]
mov ecx, dword [ebp - 0x32c]
push 2
push esi
push eax
push esi
push dword [ebp - 0x320]
mov dword [esi + 0x294], eax
call fcn.01022320
mov dword [esi + 0x298], eax
add esi, 0x29c
inc dword [ebp - 0x308]
mov eax, dword [ebp - 0x308]
cmp eax, dword [edi + 0x28c]
jb 0x1022cf5
xor esi, esi
inc esi
push esi
push ebx
push dword [ebp - 0x328]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [edi + 0x28c]
mov dword [edi + 0x284], esi
mov dword [ebp - 0x320], eax
xor edi, edi
cmp dword [ebp - 0x324], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x1022d72
push dword [ebp - 0x324]
call esi
cmp dword [ebp - 0x318], ebx
je 0x1022d82
push dword [ebp - 0x318]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x7f00
push ebx
call fcn.010200aa
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x320]
pop edi
pop esi
pop ebx
call fcn.01013eb1
leave
ret 0x10