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

Disassembly:
sub esp, 0x470
mov eax, dword [0x518450]
xor eax, esp
mov dword [esp + 0x46c], eax
mov eax, dword [0x52aa58]
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.0040dc79
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x40e656
lea eax, [esp + 0x20]
push eax
push dword [0x52aafc]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [esp + 0x1c]
mov esi, eax
call ebx
test esi, esi
jne 0x40e65c
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.004bf040
xor eax, eax
push esi
mov word [esp + 0x8c], ax
lea eax, [esp + 0x8e]
push edi
push eax
call fcn.004bf040
push 0x38
lea eax, [esp + 0x50]
push edi
push eax
call fcn.004bf040
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 0x40e655
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 0x40e64f
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 0x40e64f
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 0x40e593
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 0x40e561
cmp dword [esi], edx
ja 0x40e561
mov eax, edx
sub eax, dword [esi]
cdq
idiv dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp edi, dword [esi + 8]
jne 0x40e54a
push ecx
mov ecx, esi
call fcn.0040ed7a
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 0x40e588
mov ax, word [edx]
mov word [edi], ax
mov al, byte [edx + 2]
jmp 0x40e585
cmp edi, dword [esi + 8]
jne 0x40e576
push ecx
mov ecx, esi
call fcn.0040ed7a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esi + 4]
test edi, edi
je 0x40e588
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 0x40e5b9
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, 0xce65a2ee
mov word [esp + 0x6e], ax
mov ecx, 0xf8a377bc
lea eax, [esp + 0x7c]
push eax
lea eax, [esp + 0x180]
push eax
lea eax, [esp + 0x74]
push eax
push 0xb289c239
call fcn.00401674
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 0x40e47a
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.004b9a6c
add esp, 0x470
ret 4