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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
mov esi, dword [0x4339ac]
mov eax, dword [esi + 0x8a0]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x1c], 0x315048
mov dword [ebp - 0x10], 0x325048
mov dword [ebp - 0x14], 0x535057
mov dword [ebp - 0x20], 0x53574a
je 0x40bb92
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [esi + 0x7a0]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40bb92
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8c4]
call edi
lea eax, [ebp - 0x130]
push eax
call fcn.0041cef0
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8c8]
call edi
lea eax, [ebp - 0x130]
push eax
call fcn.0041cef0
mov dword [ebp - 0x2c], eax
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8cc]
call edi
lea eax, [ebp - 0x130]
push eax
call fcn.0041cef0
mov dword [ebp - 0x18], eax
push ebx
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8dc]
call edi
lea eax, [ebp - 0x130]
push eax
call fcn.0041cef0
cmp dword [ebp + 0xc], 1
push 4
mov dword [ebp - 0x28], eax
pop edi
jne 0x40b9ff
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
lea eax, [ebp - 0x24]
push eax
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x2c]
push eax
push edi
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call esi
jmp 0x40bb85
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x40ba4b
mov eax, dword [ebp - 0x130]
test eax, eax
mov dword [ebp - 0x24], eax
je 0x40ba4b
push eax
lea eax, [ebp - 0x130]
push str._04X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40ba52
mov byte [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8c4]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x40baab
mov eax, dword [ebp - 0x130]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x40baab
push eax
lea eax, [ebp - 0x130]
push str._04X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40bab2
mov byte [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8c8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x40bb0b
mov eax, dword [ebp - 0x130]
test eax, eax
mov dword [ebp - 0x18], eax
je 0x40bb0b
push eax
lea eax, [ebp - 0x130]
push str._04X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40bb12
mov byte [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8cc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], edi
call ebx
test eax, eax
jne 0x40bb6b
mov eax, dword [ebp - 0x130]
test eax, eax
mov dword [ebp - 0x28], eax
je 0x40bb6b
push eax
lea eax, [ebp - 0x130]
push str._04X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x40bb72
mov byte [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push dword [esi + 0x8dc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push dword [ebp - 4]
xor edi, edi
inc edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 8