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

Disassembly:
sub esp, 0x470
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x46c], eax
mov eax, dword [0x529a98]
lea ecx, [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x47c]
xor edx, edx
push esi
mov dword [esp + 0x10], eax
call fcn.0040d8e5
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40e2c2
lea eax, [esp + 0x20]
push eax
push dword [0x529b3c]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [esp + 0x1c]
mov esi, eax
call ebx
test esi, esi
jne 0x40e2c8
push edi
xor eax, eax
lea edi, [esp + 0x6e]
mov word [esp + 0x6c], 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
mov word [esp + 0x180], ax
xor edi, edi
lea eax, [esp + 0x182]
push edi
push eax
call fcn.004bea90
xor eax, eax
push esi
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push edi
push eax
call fcn.004bea90
push 0x38
lea eax, [esp + 0x50]
push edi
push eax
call fcn.004bea90
add esp, 0x24
mov dword [esp + 0x34], edi
lea eax, [esp + 0x7c]
mov dword [esp + 0x40], 0xf000
mov dword [esp + 0x44], eax
xor esi, esi
lea eax, [esp + 0x30]
mov dword [esp + 0x38], 2
push eax
push edi
push 0x104b
inc esi
mov dword [esp + 0x54], 0x80
push ebp
mov dword [esp + 0x40], esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e2c1
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], 3
lea eax, [esp + 0x17c]
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push edi
push 0x104b
push ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x58], 0x80
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e2bb
lea eax, [esp + 0x6c]
mov dword [esp + 0x30], 0xd
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push edi
push 0x104b
push ebp
mov dword [esp + 0x48], edi
mov dword [esp + 0x58], 8
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x40e2bb
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
shr eax, 0xd
and eax, esi
movzx edx, cx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp eax, edx
je 0x40e1ff
mov edx, ecx
mov byte [esp + 0x11], cl
shr edx, 0x10
lea esi, [ebx + 4]
mov edi, dword [esi + 4]
mov byte [esp + 0x10], dl
lea edx, [esp + 0x10]
mov byte [esp + 0x12], al
cmp edx, edi
jae 0x40e1cd
cmp dword [esi], edx
ja 0x40e1cd
mov eax, edx
sub eax, dword [esi]
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp edi, dword [esi + 8]
jne 0x40e1b6
push ecx
mov ecx, esi
call fcn.0040e9e6
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
mov edi, dword [esi + 4]
imul edx, eax, 3
add edx, dword [esi]
test edi, edi
je 0x40e1f4
mov ax, word [edx]
mov word [edi], ax
mov al, byte [edx + 2]
jmp 0x40e1f1
cmp edi, dword [esi + 8]
jne 0x40e1e2
push ecx
mov ecx, esi
call fcn.0040e9e6
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 4]
test edi, edi
je 0x40e1f4
mov dx, word [esp + 0x10]
mov word [edi], dx
mov byte [edi + 2], al
push 3
pop eax
add dword [esi + 4], eax
xor edi, edi
xor esi, esi
inc esi
mov eax, dword [esp + 0x14]
mov edx, ecx
shr edx, 2
and eax, esi
xor edx, ecx
mov dword [esp + 0x1c], eax
test dl, 2
je 0x40e225
shr ecx, 1
xor ecx, eax
and ecx, 4
xor ecx, eax
or ecx, 2
mov dword [esp + 0x1c], ecx
xor eax, eax
mov edx, 0x83abdfe4
mov word [esp + 0x6e], ax
mov ecx, 0xbd0dbe5a
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x74]
push eax
push 0xe171a041
call fcn.00401557
pop ecx
push eax
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [esp + 0x1c]
push 4
push eax
push 4
push edi
lea eax, [esp + 0x28c]
push eax
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc dword [esp + 0x34]
lea eax, [esp + 0x7c]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x30]
push eax
push edi
push 0x104b
push ebp
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], 2
mov dword [esp + 0x58], 0x80
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jne 0x40e0e6
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [esp + 0x20]
call ebx
mov ecx, dword [esp + 0x478]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x470
ret 4