Function at 0x402800
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 0x40281d
call fcn.00403100
cmp eax, ebp
jne 0x402828
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.00403320
mov ecx, dword [esi + 0x3c]
mov dword [ecx + 4], eax
call fcn.00403380
mov edx, dword [esi + 0x3c]
mov dword [edx + 8], eax
mov eax, dword [esi + 0xc]
cmp dword [eax + 0xc], ebp
je 0x402a9b
mov eax, dword [esi + 0x3c]
cmp dword [eax + 4], ebp
je 0x402a9b
add eax, 0x40
push 0x200
push eax
call fcn.00403430
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 0x40290f
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.00403750
jmp 0x4029aa
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionProfileList_
push 0x80000002
call ebp
test eax, eax
jne 0x4029b5
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 0x4029aa
lea ecx, [esp + 0x20]
push 0x104
push ecx
call fcn.00403750
lea edx, [esp + 0x20]
push 0x409050
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 0x409050
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.00402330
mov ecx, dword [esp + 0x1c]
mov edi, eax
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push ecx
call ebp
test eax, eax
jne 0x402a58
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 str.AppData
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 0x402a68
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00402340
mov eax, dword [esi + 0x3c]
lea ecx, [eax + 0x240]
add eax, 0x448
push ecx
push 0x104
push eax
call fcn.004026d0
mov edx, dword [esi + 0x3c]
add esp, 0xc
add edx, 0x448
push 0x104
push edx
call fcn.00403750
xor ebp, ebp
mov edi, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
push str.CurPropTab
push str.CICERO
mov ecx, esi
add edi, 0x10
call fcn.004025b0
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 str.CICERO
mov ecx, esi
add edi, 0xb98
call fcn.004025b0
test eax, eax
jne 0x402af0
mov edx, dword [esp + 0x10]
mov dword [edi], edx
jmp 0x402af6
mov dword [edi], 1
mov edi, dword [esi + 0x3c]
lea eax, [esp + 0x10]
push eax
push str.ShowKeyboardIcon
push str.CICERO
mov ecx, esi
add edi, 0x20
call fcn.004025b0
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 str.CICERO
mov ecx, esi
add edi, 0x24
call fcn.004025b0
test eax, eax
jne 0x402b48
mov edx, dword [esp + 0x10]
mov dword [edi], edx
jmp 0x402b4e
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 str.CICERO
mov ecx, esi
add edi, 0x14
call fcn.004025b0
test eax, eax
jne 0x402ba0
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
jmp 0x402ba6
mov dword [edi], 0xbb8
mov edi, dword [esi + 0x3c]
lea edx, [esp + 0x10]
push edx
push str.SeamlessTypingCount
push str.CICERO
mov ecx, esi
add edi, 0x18
call fcn.004025b0
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 str.CICERO
call fcn.004025b0
test eax, eax
jne 0x402bf8
mov ecx, dword [esp + 0x10]
mov dword [edi], ecx
jmp 0x402bfe
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 0x402c1e
mov ecx, esi
call fcn.00403120
pop esi
mov eax, 1
pop ebp
add esp, 0x31c
ret