Function at 0x408ef5
Capabilities:
Get graphical window text
Set registry value

Disassembly:
sub esp, 0x468
mov eax, dword [0x5107c0]
xor eax, esp
mov dword [esp + 0x464], eax
mov eax, dword [0x52181c]
lea ecx, [esp + 4]
push ebx
mov ebx, dword [esp + 0x470]
xor edx, edx
push ebp
push esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
call fcn.00408804
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4091b1
lea eax, [esp + 0x14]
push eax
push dword [0x5218c8]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [esp + 0x10]
mov esi, eax
call ebp
test esi, esi
jne 0x4091b7
push edi
xor eax, eax
lea edi, [esp + 0x66]
mov word [esp + 0x64], ax
mov esi, 0xfe
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push eax
mov word [esp + 0x17c], ax
lea eax, [esp + 0x17e]
push eax
call fcn.004b6030
xor eax, eax
push esi
mov word [esp + 0x84], ax
xor esi, esi
lea eax, [esp + 0x86]
push esi
push eax
call fcn.004b6030
push 0x38
lea eax, [esp + 0x48]
push esi
push eax
call fcn.004b6030
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x98]
add esp, 0x24
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], 0xf000
mov dword [esp + 0x28], 1
push eax
push esi
push 0x104b
push ebx
mov dword [esp + 0x40], 2
mov dword [esp + 0x50], 0x80
call edi
test eax, eax
je 0x4091b0
mov ebp, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x40], 0x80
inc eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x174]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x104b
push ebx
call edi
test eax, eax
je 0x4091aa
lea eax, [esp + 0x64]
mov dword [esp + 0x28], 0xd
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x104b
push ebx
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], 8
call edi
test eax, eax
je 0x4091aa
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x48]
shr ebx, 0xd
not ebx
movzx eax, cx
and ebx, 1
mov dword [esp + 0x20], ebx
cmp ebx, eax
je 0x409110
mov eax, ecx
mov byte [esp + 0x11], cl
shr eax, 0x10
lea esi, [ebp + 4]
mov ecx, dword [esi + 4]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
mov byte [esp + 0x12], bl
cmp eax, ecx
jae 0x4090e9
cmp dword [esi], eax
ja 0x4090e9
sub eax, dword [esi]
push 3
cdq
pop ebx
idiv ebx
mov edi, eax
cmp ecx, dword [esi + 8]
jne 0x4090c6
push ecx
mov ecx, esi
call fcn.00409776
mov edx, dword [esi + 4]
imul ecx, edi, 3
add ecx, dword [esi]
test edx, edx
je 0x4090de
mov ax, word [ecx]
mov word [edx], ax
mov al, byte [ecx + 2]
mov byte [edx + 2], al
add dword [esi + 4], ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40910e
cmp ecx, dword [esi + 8]
jne 0x4090f6
push ecx
mov ecx, esi
call fcn.00409776
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x409108
mov ax, word [esp + 0x10]
mov word [ecx], ax
mov byte [ecx + 2], bl
push 3
pop eax
add dword [esi + 4], eax
xor esi, esi
xor eax, eax
mov edx, 0x83cbd882
mov word [esp + 0x66], ax
mov ecx, 0x3abfc82f
lea eax, [esp + 0x74]
push eax
lea eax, [esp + 0x178]
push eax
lea eax, [esp + 0x6c]
push eax
push 0x3b976e3f
call fcn.00401337
pop ecx
push eax
lea eax, [esp + 0x284]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x20]
push 4
push eax
push 4
push esi
lea eax, [esp + 0x284]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x74]
inc dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x104b
push ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 2
mov dword [esp + 0x50], 0x80
call edi
test eax, eax
jne 0x409007
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [esp + 0x14]
call ebp
mov ecx, dword [esp + 0x470]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x468
ret 4