Function at 0x413980
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x31c
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov ecx, dword [esi + 0xc]
cmp dword [ecx + 0xc], ebp
je 0x41399d
call fcn.00414f20
cmp eax, ebp
jne 0x4139a8
pop esi
xor eax, eax
pop ebp
add esp, 0x31c
ret
push ebx
push edi
mov edi, dword [esi + 0x3c]
mov ecx, 0x154
xor eax, eax
rep stosd dword es:[edi], eax
call fcn.004116f0
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 4], eax
call fcn.00411820
mov edx, dword [esi + 0x3c]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xc], ebp
je 0x413c1b
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], ebp
je 0x413c1b
add eax, 0x40
push 0x200
push eax
call fcn.00411980
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x124]
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
push ecx
call ebx
lea edx, [esp + 0x20]
push 0x104
push edx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov eax, dword [esi + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add eax, 0x40
lea ecx, [esp + 0x124]
push eax
push ecx
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x124]
push edx
push 0x20019
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push eax
push 0x80000002
call ebp
test eax, eax
jne 0x413a8f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.ProfileImagePath
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00411ca0
jmp 0x413b2a
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
push 0x80000002
call ebp
test eax, eax
jne 0x413b35
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.ProfilesDirectory
push eax
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413b2a
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00411ca0
lea edx, [esp + 0x20]
push 0x42b908
push edx
call edi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x228]
push eax
push ecx
push 0
push 0
push str.DefaultUserProfile
push edx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x228]
lea ecx, [esp + 0x20]
push eax
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x20]
add ecx, 0x240
push eax
push ecx
call ebx
mov eax, dword [esi + 0x3c]
lea edx, [eax + 0x240]
add eax, 0x344
push edx
push eax
call ebx
mov eax, dword [esi + 0x3c]
push 0x42b908
add eax, 0x344
push eax
call edi
mov ecx, dword [esi + 0x3c]
push str.NTUSER.DAT
add ecx, 0x344
push ecx
call edi
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00413350
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push 0x426964
push ecx
call ebp
test eax, eax
jne 0x413bd8
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
add eax, 0x448
push edx
push eax
push 0
push 0
push 0x4269ac
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x413be8
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00413360
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x240]
add eax, 0x448
push ecx
push 0x104
push eax
call fcn.00413850
mov edx, dword [esi + 0x3c]
add esp, 0xc
add edx, 0x448
push 0x104
push edx
call fcn.00411ca0
xor ebp, ebp
mov edi, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
push str.CurPropTab
push 0x4268e4
mov ecx, esi
add edi, 0x10
call fcn.00413630
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push ecx
not eax
and eax, edx
push str.SeamlessEnable
mov dword [edi], eax
mov edi, dword [esi + 0x10]
push 0x4268e4
mov ecx, esi
add edi, 0xb98
call fcn.00413630
test eax, eax
jne 0x413c70
mov edx, dword [esp + 0x10]
mov dword [edi], edx
jmp 0x413c76
mov dword [edi], 1
mov edi, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
push str.ShowKeyboardIcon
push 0x4268e4
mov ecx, esi
add edi, 0x20
call fcn.00413630
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
neg eax
sbb eax, eax
push ecx
not eax
and eax, edx
push str.ShowSeamlessClassicSwitch
mov dword [edi], eax
mov edi, dword [esi + 0x3c]
push 0x4268e4
mov ecx, esi
add edi, 0x24
call fcn.00413630
test eax, eax
jne 0x413cc8
mov edx, dword [esp + 0x10]
mov dword [edi], edx
jmp 0x413cce
mov dword [edi], 1
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x28], ebp
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 0x2c], ebp
mov edx, dword [esi + 0x3c]
mov dword [edx + 0x30], ebp
mov dword [edx + 0x34], ebp
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x38], ebp
mov ecx, dword [esi + 0x3c]
lea eax, [esp + 0x10]
mov dword [ecx + 0x3c], ebp
mov edx, dword [esi + 0x3c]
push eax
push str.SeamlessTypingMaxCount
mov dword [edx + 0x54c], ebp
mov edi, dword [esi + 0x3c]
push 0x4268e4
mov ecx, esi
add edi, 0x14
call fcn.00413630
test eax, eax
jne 0x413d20
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
jmp 0x413d26
mov dword [edi], 0xbb8
mov edi, dword [esi + 0x3c]
lea edx, [esp + 0x10]
push edx
push str.SeamlessTypingCount
push 0x4268e4
mov ecx, esi
add edi, 0x18
call fcn.00413630
mov ebx, dword [esp + 0x10]
mov ecx, esi
neg eax
sbb eax, eax
not eax
and eax, ebx
mov dword [edi], eax
mov edi, dword [esi + 0x3c]
lea eax, [esp + 0x10]
add edi, 0x1c
push eax
push str.SeamlessTypingCountDlg
push 0x4268e4
call fcn.00413630
test eax, eax
jne 0x413d78
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
jmp 0x413d7e
mov dword [edi], 1
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
mov eax, dword [esi + 0x3c]
pop edi
pop ebx
mov dword [eax], 1
mov esi, dword [esi + 0xc]
cmp dword [esi + 0xc], ebp
je 0x413d9e
mov ecx, esi
call fcn.00414f40
pop esi
mov eax, 1
pop ebp
add esp, 0x31c
ret