Function at 0x40ad20
Capabilities:
Get graphical window text
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40af23
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x40af23
mov eax, dword [esi + 4]
test eax, eax
je 0x40ad56
push eax
call fcn.005444e2
pop ecx
push ebx
mov dword [esi], edi
call fcn.00525390
inc eax
push eax
call fcn.005444b9
pop ecx
mov dword [esi + 4], eax
pop ecx
mov ecx, dword [ebp + 0x10]
test eax, eax
mov dword [esi + 8], ecx
je 0x40ad7d
push ebx
push eax
call fcn.005254b0
pop ecx
pop ecx
lea eax, [ebp + 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x20019
push 0
push ebx
mov ebx, reloc.WS2_32.dll_accept
mov dword [ebp + 0x10], 0x10
push ebx
mov dword [ebp - 4], 3
call edi
test eax, eax
jne 0x40adcf
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
test eax, eax
je 0x40add9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push 1
sub ecx, dword [ebp - 0x1c]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
push ecx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
test eax, eax
je 0x40af23
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
mov dword [ebp + 8], eax
je 0x40adcf
push 0xfffffffffffffff4
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, eax
je 0x40ae8d
cmp eax, 0xffffffff
je 0x40ae8d
push 0x10
pop ecx
push ecx
push 0x668fc0
push eax
mov dword [ebp - 8], ecx
call fcn.005255a0
add esp, 0xc
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0xc], 3
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push ebx
call edi
test eax, eax
jne 0x40af19
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x10]
test eax, eax
je 0x40aef0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40af19
cmp dword [esi + 8], 0
je 0x40af19
lea eax, [ebp - 0x50]
push 0x30
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40af19
mov eax, dword [esi + 4]
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push eax
push ebx
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], 3
call edi
test eax, eax
jne 0x40af19
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x50]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
test eax, eax
jne 0x40ae82
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
push 1
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MoveWindow]
test eax, eax
je 0x40af23
push 2
push dword [ebp + 8]
jmp 0x40ae0a
xor eax, eax
jmp 0x40add2