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

Disassembly:
push 0xffffffffffffffff
push 0x436176
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2e4
push ebx
push ebp
xor eax, eax
push esi
mov esi, ecx
mov dword [esp + 0x72], eax
push edi
mov dword [esp + 0x7a], eax
mov edx, dword [esi + 4]
lea ecx, [esp + 0x74]
push 8
xor ebp, ebp
mov dword [esp + 0x82], eax
push ecx
push edx
mov word [esp + 0x80], bp
mov word [esp + 0x8e], ax
call dword [sym.imp.USER32.dll_GetClassNameW]
test eax, eax
je 0x411fd4
lea eax, [esp + 0x74]
push 0x43e5f4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x411fd4
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ecx
call edi
mov ecx, eax
or ch, 1
cmp eax, ecx
je 0x411f91
mov edx, dword [esi + 4]
push ecx
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 4]
push 0xfffffffffffffff0
push eax
call edi
and eax, 0xff
cmp eax, 3
je 0x411fd0
cmp eax, 4
je 0x411fd0
cmp eax, 5
je 0x411fd0
cmp eax, 6
je 0x411fd0
cmp eax, 7
je 0x411fd0
cmp eax, 8
je 0x411fd0
cmp eax, 9
je 0x411fd0
cmp eax, 0xd
je 0x411fd0
cmp eax, 0xe
je 0x411fd0
cmp eax, 0xf
jne 0x411fd4
and byte [esi + 0x54], 0xfe
push 0x7f89
push ebp
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esi + 0x28], eax
mov al, byte [esi + 0x54]
test al, 1
je 0x412088
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push ebp
push ebp
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, ebp
mov dword [esi + 0x30], eax
jne 0x412015
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x30]
cmp edx, ebp
je 0x412088
cmp dword [esi + 0x2c], ebp
jne 0x412088
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x98]
mov dword [esp + 0x94], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x94]
push eax
push 0x5c
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esi + 0x50]
and ecx, 0x30
cmp cl, 0x30
jne 0x412061
mov dword [esp + 0xa4], 0x2bc
jmp 0x41206f
test byte [esi + 0x50], 1
jne 0x41206f
mov byte [esp + 0xa9], 1
lea edx, [esp + 0x94]
push edx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 0x2c], eax
mov al, byte [esi + 0x54]
or al, 8
mov byte [esi + 0x54], al
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push ebp
lea edi, [esi + 0x44]
call fcn.004115b0
push ebp
push ebp
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push ebp
call fcn.004115a0
mov eax, dword [esi + 4]
mov ecx, edi
push eax
call fcn.004115d0
cmp dword [esi + 0x20], ebp
jne 0x41218e
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, ebp
jle 0x41218e
mov dword [esp + 0xf0], ebp
lea edi, [eax + 1]
mov dword [esp + 0x2fc], ebp
lea eax, [edi + edi]
cmp eax, 0x200
jbe 0x4120f6
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
jmp 0x4120fd
lea eax, [esp + 0xf4]
cmp eax, ebp
mov dword [esp + 0xf0], eax
mov ebx, eax
je 0x41216e
mov edx, dword [esi + 4]
push edi
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebp
jle 0x412167
mov eax, dword [esi + 0x20]
push eax
call fcn.0042329e
add esp, 4
mov dword [esi + 0x20], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebp
mov dword [esi + 0x20], eax
je 0x412167
push ebx
push edi
push eax
call fcn.004126a0
add esp, 0xc
mov ecx, esi
call fcn.00410540
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x412167
push ebx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0xf4]
mov dword [esp + 0x2fc], 0xffffffff
cmp eax, ecx
je 0x41218e
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x412401
cmp dword [esi + 0x20], ebp
jne 0x4121ae
cmp dword [esi + 0x24], ebp
je 0x41240a
mov eax, dword [esi + 4]
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi + 4]
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x34], eax
push ecx
mov dword [esp + 0x3c], eax
push edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea edi, [esi + 0x34]
mov eax, edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov al, byte [esi + 0x54]
test al, 1
je 0x4123f8
mov eax, dword [esi + 0x50]
shr eax, 4
test al, 1
je 0x412347
lea ecx, [esp + 0x44]
lea edx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov ecx, esi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x5c], ebp
call fcn.004126e0
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x18]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
je 0x4122c0
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x84]
push 0x410
push ecx
push edx
push eax
lea ecx, [esp + 0x28]
call fcn.004126c0
mov eax, dword [esi + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push eax
call ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ebp
mov dword [esp + 0x50], edx
mov dword [esp + 0x58], ecx
je 0x4122fe
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push 0x410
push eax
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004126c0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call ebx
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [edi], edx
mov edx, dword [esp + 0x58]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x4123f8
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x28], ebp
cmp eax, ebp
je 0x412362
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x20]
cmp eax, ebp
je 0x41236f
mov dword [esp + 0x10], eax
jmp 0x412376
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x10], ecx
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
xor eax, eax
mov ebp, ebx
and ebp, 1
je 0x412394
mov eax, 1
jmp 0x41239e
test bl, 2
je 0x41239e
mov eax, 2
or ah, 4
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push edi
push 0xffffffffffffffff
push eax
call fcn.004126c0
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4123ca
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
test ebp, ebp
je 0x4123de
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + 0x3c]
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
jmp 0x4123ec
test bl, 2
je 0x4123f6
mov eax, dword [esp + 0x38]
mov ebx, dword [esi + 0x3c]
sub eax, ebx
push 0
push eax
push edi
call dword [sym.imp.USER32.dll_OffsetRect]
xor ebp, ebp
lea ecx, [esp + 0x18]
call fcn.00409240
cmp dword [esi + 0x24], ebp
jne 0x4124a3
mov eax, dword [esi + 0x50]
shr eax, 2
test al, 1
jne 0x4124a3
mov ebx, dword [esi + 0x20]
cmp ebx, ebp
je 0x4124d9
push ebp
call fcn.0042329e
add esp, 4
mov dword [esi + 0x24], ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea ecx, [edi + edi]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebp
mov dword [esi + 0x24], eax
je 0x4124d9
push ebx
push edi
push eax
call fcn.004126a0
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp eax, ebp
jne 0x412469
mov ecx, esi
call fcn.00410540
mov edx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
cmp eax, ebp
je 0x4124d9
mov eax, dword [edi]
push ebp
push 1
push 0x401
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi + 0x24]
lea ecx, [esi + 0x34]
push 1
push ecx
push ecx
mov ecx, esp
push edx
call fcn.004115c0
mov eax, dword [esi + 4]
push eax
jmp 0x4124d2
mov ecx, dword [esi + 0x44]
lea edi, [esi + 0x44]
push ebp
push 1
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x24]
lea edx, [esi + 0x34]
push 1
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.004115c0
mov ecx, dword [esi + 4]
push ecx
mov ecx, edi
call fcn.00412ac0
test byte [esi + 0x54], 1
je 0x412664
lea edx, [esp + 0x14]
mov dword [esp + 0x2fc], 1
push edx
push 0xf003f
push ebp
push 0x43e598
push SysReAllocStringLen
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebp
jne 0x412664
xor eax, eax
mov edi, dword [esp + 0x14]
mov dword [esp + 0x5e], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x62], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x66], eax
push ecx
mov dword [esp + 0x6e], eax
push edx
mov dword [esp + 0x76], eax
mov dword [esp + 0x4c], edi
mov word [esp + 0x7a], ax
lea eax, [esp + 0x34]
push eax
push ebp
push 0x43e57c
push edi
mov word [esp + 0x74], bp
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x44], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412618
or eax, 0xffffffff
mov dword [esp + 0x10], ebp
lea ebx, [esp + 0x5c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea ebp, [esp + 0x18]
mov ax, word [ebx]
mov edi, ebx
test ax, ax
je 0x4125c0
cmp ax, 0x2c
je 0x4125ab
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
mov ax, word [edi]
test ax, ax
jne 0x412592
jmp 0x4125c0
push ebx
mov word [edi], 0
call dword [sym.imp.MSVCRT.dll__wtoi]
add esp, 4
mov dword [ebp], eax
lea ebx, [edi + 2]
cmp dword [ebp], 0xffffffff
je 0x412612
mov eax, dword [esp + 0x10]
add ebp, 4
inc eax
cmp eax, 2
mov dword [esp + 0x10], eax
jl 0x412588
cmp word [ebx], 0
je 0x412612
push ebx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov ecx, dword [esp + 0x20]
and eax, 0xff
shl eax, 8
and ecx, 0xff
add esp, 4
or eax, ecx
mov ecx, dword [esp + 0x18]
shl eax, 8
and ecx, 0xff
or eax, ecx
cmp eax, 0xffffffff
je 0x412612
mov dword [esi + 0x48], eax
mov edi, dword [esp + 0x14]
xor ebp, ebp
lea ecx, [esp + 0x24]
lea edx, [esp + 0x5c]
push ecx
lea eax, [esp + 0x44]
push edx
push eax
push ebp
push 0x43e550
push edi
mov dword [esp + 0x3c], 0x18
mov dword [esp + 0x58], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412659
lea ecx, [esp + 0x5c]
push ecx
call fcn.00412fc0
add esp, 4
cmp eax, 0xffffffff
je 0x412659
mov dword [esi + 0x4c], eax
cmp edi, ebp
je 0x412664
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2f0
ret