Function at 0x40e410
Capabilities:
Create process on windows
Delete registry value
Get geographical location
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x21c
test eax, eax
push ebp
push esi
je 0x40e46c
push str.EnableTIPProc__purged
call fcn.0040dff0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftIMEJP8.1
push 0x80000001
call ebp
test eax, eax
jne 0x40e472
mov ecx, dword [esp + 8]
push str.Enabled
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40e472
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
xor esi, esi
push eax
push 0xf003f
push esi
push str.SoftwareMicrosoftIMEJP8.1
push 0x80000001
call ebp
test eax, eax
jne 0x40e4cc
mov ecx, dword [esp + 8]
push eax
push eax
push eax
push eax
push str.Enabled
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e4b9
push str.EnableTIPProc__already_enabled_____nop
call fcn.0040dff0
add esp, 4
mov esi, 1
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40e816
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
push 0
push 0
push 0x1004
push 0x800
mov dword [esp + 0x30], 0
call ebx
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.0041a4fe
add esp, 4
mov esi, eax
push edi
push esi
push 0x1004
push 0x800
call ebx
push esi
push str.EnableTIPProc_Special_check_EnableTIP___acp_s
call fcn.0040dff0
add esp, 8
push 0x42d08c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x40e53e
push esi
push str.EnableTIPProc_Special_check_EnableTIP___acp_s_____enabled
call fcn.0040dff0
add esp, 8
mov dword [esp + 0x20], 1
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 0x20019
push esi
push str.SystemCurrentControlSetControlKeyboard_Layouts
push 0x80000002
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
mov ebx, 0x104
jne 0x40e654
mov ecx, dword [esp + 0x14]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push esi
push esi
lea edx, [esp + 0x28]
push esi
lea eax, [esp + 0x34]
push edx
push eax
push esi
push ecx
mov dword [esp + 0x3c], ebx
call edi
cmp eax, 0x103
je 0x40e649
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push str._08x
push eax
call fcn.0041ac3e
add esp, 0xc
cmp word [esp + 0x18], 0x411
jne 0x40e619
lea ecx, [esp + 0x24]
push ecx
push str.EnableTIPProc_Special_check_EnableTIP___Enum_s
call fcn.0040dff0
add esp, 8
lea edx, [esp + 0x24]
push str.e0010411
push edx
call ebp
test eax, eax
je 0x40e607
lea eax, [esp + 0x24]
push str.00000411
push eax
call ebp
test eax, eax
je 0x40e607
lea ecx, [esp + 0x24]
push ecx
push str.EnableTIPProc_Special_check_EnableTIP___Enum_s_____enabled
call fcn.0040dff0
add esp, 8
mov dword [esp + 0x20], 1
jmp 0x40e619
lea edx, [esp + 0x24]
push edx
push str.EnableTIPProc_Special_check_EnableTIP___Enum_s_its_me_____nop
call fcn.0040dff0
add esp, 8
mov edx, dword [esp + 0x14]
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x34]
inc esi
push eax
push ecx
push esi
push edx
mov dword [esp + 0x3c], ebx
call edi
cmp eax, 0x103
jne 0x40e599
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push str.Keyboard_LayoutPreload
push 0x80000001
call ebp
test eax, eax
jne 0x40e71a
lea edx, [esp + 0x14]
lea eax, [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
xor esi, esi
push edx
push eax
mov eax, dword [esp + 0x18]
push esi
lea ecx, [esp + 0x28]
push esi
lea edx, [esp + 0x138]
push ecx
push edx
push esi
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call edi
cmp eax, 0x103
je 0x40e70f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x24]
push ecx
push str._08x
push edx
mov dword [esp + 0x24], 0
call fcn.0041ac3e
add esp, 0xc
cmp word [esp + 0x18], 0x411
jne 0x40e6dc
mov dword [esp + 0x20], 1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x28]
push 0
lea eax, [esp + 0x138]
inc esi
push edx
push eax
push esi
push ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
call edi
cmp eax, 0x103
jne 0x40e6ac
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x20]
pop edi
test esi, esi
pop ebx
je 0x40e745
push str.imjp81.ime
call fcn.004023e0
add esp, 4
test eax, eax
je 0x40e745
push 0
push eax
push 0x80000001
call fcn.00402700
add esp, 0xc
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0xc]
push eax
push 0x4272f0
push 1
push 0
push 0x426c30
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40e7a8
mov eax, dword [esp + 0xc]
push esi
push 0x425640
push 0x411
mov ecx, dword [eax]
push 0x425690
push eax
call dword [ecx + 0x44]
mov eax, dword [esp + 0xc]
push esi
push 0x425650
push 0x411
mov edx, dword [eax]
push 0x425690
push eax
call dword [edx + 0x44]
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push str.SoftwareMicrosoftIMEJP8.1
push 0x80000001
call ebp
test eax, eax
jne 0x40e805
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push 0
push str.Enabled
push ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.EnableTIPProc__ready_to_check
call fcn.0040dff0
mov edx, dword [esp + 0xc]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e816
push 1
push str.ctfmon.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
pop ebp
add esp, 0x21c
ret