Function at 0x4091c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42407b
push eax
mov dword fs:[0], esp
sub esp, 0x274
lea eax, [esp]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push eax
mov ecx, dword [esp + 0x298]
xor ebx, ebx
push 0x20019
push ebx
push str.SoftwareMicrosoftIMEmsime97MSIME
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409408
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push str.kana
push ecx
mov dword [esp + 0x30], 4
call edi
test eax, eax
je 0x40923b
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push str.option3
push ecx
mov dword [esp + 0x30], 4
call edi
test eax, eax
jne 0x4092c7
mov eax, dword [esp + 0x14]
cmp esi, ebx
je 0x40927b
test al, 1
jne 0x40927b
mov dword [ebp + 0x10ac], 1
jmp 0x409281
mov dword [ebp + 0x10ac], ebx
and eax, 0x3000
cmp ax, bx
jne 0x409293
mov dword [ebp + 0x10d4], ebx
jmp 0x4092c7
cmp ax, 0x1000
jne 0x4092a5
mov dword [ebp + 0x10d4], 1
jmp 0x4092c7
cmp ax, 0x2000
jne 0x4092b7
mov dword [ebp + 0x10d4], 2
jmp 0x4092c7
cmp ax, 0x3000
jne 0x4092c7
mov dword [ebp + 0x10d4], 3
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
mov esi, 4
push str.option1
push ecx
mov dword [esp + 0x30], esi
call edi
test eax, eax
jne 0x4093a9
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
test ch, 4
je 0x409309
mov edx, 1
mov dword [ebp + 0x10e0], edx
jmp 0x409314
mov dword [ebp + 0x10e0], ebx
mov edx, 1
mov eax, ecx
and eax, 0xc
cmp ax, bx
jne 0x409326
mov dword [ebp + 0x10b8], edx
jmp 0x409355
cmp ax, si
jne 0x409333
mov dword [ebp + 0x10b8], ebx
jmp 0x409355
cmp ax, 8
jne 0x409345
mov dword [ebp + 0x10b8], 2
jmp 0x409355
cmp ax, 0xc
jne 0x409355
mov dword [ebp + 0x10b8], 3
mov eax, ecx
and eax, 3
cmp ax, bx
jne 0x409367
mov dword [ebp + 0x10b4], edx
jmp 0x409396
cmp ax, dx
jne 0x409374
mov dword [ebp + 0x10b4], ebx
jmp 0x409396
cmp ax, 2
jne 0x409386
mov dword [ebp + 0x10b4], 2
jmp 0x409396
cmp ax, 3
jne 0x409396
mov dword [ebp + 0x10b4], 3
test cl, 0x80
je 0x4093a3
mov dword [ebp + 0x10e8], edx
jmp 0x4093a9
mov dword [ebp + 0x10e8], ebx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push eax
push ebx
push ebx
push str.AutoCorrect
push ecx
mov dword [esp + 0x30], esi
call edi
test eax, eax
jne 0x4093d3
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x2228], edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push ebx
push str.shiftmode
push edx
mov dword [esp + 0x30], esi
call edi
test eax, eax
jne 0x4093fd
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x1108], eax
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x294]
lea edx, [esp + 0x10]
push edx
push 0x20019
push ebx
push str.SoftwareMicrosoftIMEmsime97MSIMEAutoCharWidth
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40951c
lea ecx, [esp + 0x130]
call fcn.00419eb0
lea ecx, [esp + 0x20]
lea edx, [esp + 0x1c]
push ecx
push edx
mov edx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x30]
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x2a4], ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edx
xor esi, esi
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], 4
call ebx
cmp eax, 0x103
je 0x4094fa
lea eax, [esp + 0x2c]
mov ecx, ebp
push eax
call fcn.0040a8e0
mov edi, eax
test edi, edi
jl 0x4094c2
mov edx, dword [esp + 0x1c]
mov eax, dword [0x432ddc]
push edx
lea edx, [esp + 0x30]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x1ec]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edi
lea ecx, [esp + 0x138]
mov dword [esp + 0x30], eax
call fcn.0041a0c0
lea edx, [esp + 0x20]
lea eax, [esp + 0x1c]
push edx
push eax
mov eax, dword [esp + 0x18]
push 0
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0x3c]
inc esi
push ecx
push edx
push esi
push eax
mov dword [esp + 0x44], 0x104
mov dword [esp + 0x40], 4
call ebx
cmp eax, 0x103
jne 0x40947e
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x130]
mov dword [esp + 0x28c], 0xffffffff
call fcn.00413050
mov ecx, dword [esp + 0x284]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x280
ret 4