Function at 0x401130
Capabilities:
Check os version
Get common file path
Get installed programs
Get keyboard layout
Set file attributes
Set registry value
Write file on windows

Disassembly:
sub esp, 0x474
mov eax, dword [esp + 0x478]
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
push eax
push edi
push edi
push edi
push 0x80000000
push edi
push 0x80000000
push 0xcf0000
push 0x436c10
push str.Liu95
push edi
mov dword [0x439984], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebp, eax
cmp ebp, edi
mov dword [esp + 0x18], ebp
je 0x401808
mov eax, dword [esp + 0x48c]
push eax
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3b6
je 0x4011c6
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push edi
push str.Installation_Fail
push str.This_is_not_Tranditional_Chinese_Environment._n_The_installation_will_stop.
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x401274
cmp al, 5
jne 0x401217
xor ecx, ecx
mov cl, ah
test cl, cl
jne 0x4011ee
shr eax, 0x10
push eax
push 0x437138
jmp 0x401204
cmp al, 5
jne 0x401217
xor ecx, ecx
mov cl, ah
cmp cl, 1
jne 0x401217
shr eax, 0x10
push eax
push 0x4370c8
lea edx, [esp + 0x278]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp 0x401244
xor edx, edx
mov ecx, eax
mov dl, ah
and eax, 0xff
shr ecx, 0x10
and edx, 0xff
push ecx
push edx
push eax
lea eax, [esp + 0x27c]
push 0x437050
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push 1
lea ecx, [esp + 0x274]
push 0x437044
push ecx
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x4012c6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
cmp al, 4
jae 0x40129f
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
push edi
push 0x437044
push 0x436fbc
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
xor edx, edx
mov dl, ah
and eax, 0xff
and edx, 0xff
push edx
push eax
lea eax, [esp + 0x278]
push str.Microsoft_Windows_95__u._u
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x20c]
push 0x64
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x174]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 1
push 0x436f98
push 0x436f7c
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 1
jne 0x401808
lea eax, [esp + 0x40c]
mov dword [esp + 0x10], edi
push eax
push 0x1e
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov ebx, eax
cmp ebx, edi
jbe 0x401389
lea esi, [esp + 0x40c]
mov ecx, dword [esi]
push ecx
call sub.IMM32.dll_ImmIsIME
test eax, eax
je 0x401358
mov eax, dword [esi]
lea edx, [esp + 0x154]
push 0x20
push edx
push eax
call sub.IMM32.dll_ImmGetIMEFileNameA
lea ecx, [esp + 0x154]
push str.LIU95.IME
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401362
inc edi
add esi, 4
cmp edi, ebx
jb 0x401323
jmp 0x401389
push 1
push 0x436f98
push 0x436f44
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x401808
mov edx, dword [esp + edi*4 + 0x40c]
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4013bb
push eax
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
test eax, eax
jne 0x4013bb
push eax
push 0x436f98
push 0x436f00
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
mov eax, dword [esp + 0x48c]
mov ecx, dword [esp + 0x488]
push eax
push ecx
push ebp
call fcn.00401a10
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
add esp, 0xc
mov dword [esp + 0x14], eax
lea edx, [esp + 0x20c]
lea eax, [esp + 0x28]
push edx
push eax
call ebx
lea ecx, [esp + 0x28]
push str.liubig5j.tab
push ecx
call esi
lea edx, [esp + 0x28]
push pe_nt_image_headers32
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
lea eax, [esp + 0x3c]
push 0x40000000
push eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x401458
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x19dbc
push 0x405020
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x4014a6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x28]
push 0x436c80
push edx
call esi
mov edi, dword [esp + 0x18]
push 5
lea eax, [esp + 0x2c]
push 0x436c70
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
jne 0x401610
mov ecx, dword [esp + 0x48c]
mov edx, dword [esp + 0x488]
push ecx
push edx
push edi
call fcn.00401a10
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4013ea
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x28]
push eax
push ecx
call ebx
lea edx, [esp + 0x28]
push str.unliu.exe
push edx
call esi
lea eax, [esp + 0x28]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
lea ecx, [esp + 0x3c]
push 0x40000000
push ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x40151a
lea edx, [esp + 0x24]
push 0
push edx
push 0x6200
push 0x41ede0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x401568
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x28]
push 0x436c80
push eax
call esi
mov edi, dword [esp + 0x18]
push 5
lea ecx, [esp + 0x2c]
push 0x436c70
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
jne 0x401610
mov edx, dword [esp + 0x48c]
mov eax, dword [esp + 0x488]
push edx
push eax
push edi
call fcn.00401a10
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4014ac
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x174]
lea edx, [esp + 0x28]
push ecx
push edx
call ebx
lea eax, [esp + 0x28]
push str.liu95.ime
push eax
call esi
lea ecx, [esp + 0x28]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
lea edx, [esp + 0x3c]
push 0x40000000
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x4015c6
push edi
call fcn.00401b00
add esp, 4
test eax, eax
jne 0x401630
lea eax, [esp + 0x28]
push 0x436c80
push eax
call esi
mov edi, dword [esp + 0x18]
push 5
lea ecx, [esp + 0x2c]
push 0x436c70
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 4
jne 0x401610
mov edx, dword [esp + 0x48c]
mov eax, dword [esp + 0x488]
push edx
push eax
push edi
call fcn.00401a10
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x40156e
push 0x10
push 0x436ecc
push 0x436c58
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
lea ecx, [esp + 0x20c]
lea edx, [esp + 0x28]
push ecx
push edx
call ebx
lea eax, [esp + 0x28]
push str.liu.box
push eax
call esi
push 0
push pe_nt_image_headers32
push 1
push 0
push 0
lea ecx, [esp + 0x3c]
push 0x40000000
push ecx
call ebp
mov ebp, eax
cmp ebp, 0xffffffff
je 0x401691
lea edx, [esp + 0x24]
push 0
push edx
push 0x3fe
push 0x436808
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
test eax, eax
call edi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016c2
push eax
lea eax, [esp + 0x1dc]
push str._08X
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x1d8]
push 1
push ecx
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
jmp 0x4016f7
lea edx, [esp + 0x174]
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x174]
push str.liu95.ime
push eax
call esi
lea ecx, [esp + 0x174]
push 0x436f98
push ecx
call sub.IMM32.dll_ImmInstallIMEA
mov dword [esp + 0x10], eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
lea edx, [esp + 0x20]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call edi
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push str.LIU98
push ecx
call edi
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call ebp
lea eax, [esp + 0x308]
push 0x436e68
push eax
call ebx
lea edi, [esp + 0x308]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x30c]
push ecx
push 1
push eax
push str.DisplayName
push edx
call ebx
lea eax, [esp + 0x308]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x308]
push 0x436e50
push ecx
call esi
lea edi, [esp + 0x308]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x308]
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x2c]
push str.UninstallString
push eax
call ebx
mov ecx, dword [esp + 0x1c]
push ecx
call ebp
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push edx
push 0x436d00
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x4017e1
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edx, dword [esp + 0x18]
push 0x40
lea ecx, [esp + 0x2c]
push 0x436cf8
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x474
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x474
ret