Function at 0x401ed3
Capabilities:
Accept command line arguments
Get common file path
Read file via mapping

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
call fcn.00401ba4
xor ebx, ebx
push 0x7f00
push ebx
mov dword [0x40d9c4], eax
mov dword [0x40d944], 0x60
mov dword [0x40d9bc], ebx
mov dword [0x40dbd8], ebx
mov dword [0x40d66c], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x40db78], eax
lea eax, [esp + 0x30]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x30]
mov esi, 0x40dbe0
push eax
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call dword [sym.imp.USER32.dll_CharUpperA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov dword [esp + 0x14], eax
call ebp
mov ecx, dword [esp + 0x10]
cmp byte [eax + ecx - 1], 0x46
jne 0x401f72
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.0040197d
jmp 0x401fb1
push str.VK_4.0__C_Tuan
push 0x40d9a0
call edi
push ebx
push 0x40d9a0
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [0x40d650], eax
je 0x401fb8
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebx
push 0xbbc
push 0x111
push dword [0x40d650]
call dword [sym.imp.USER32.dll_PostMessageA]
xor eax, eax
jmp 0x40225f
push esi
call fcn.00406470
mov dword [esp], 0x40b05c
push esi
call fcn.004063cb
pop ecx
pop ecx
push esi
call ebp
add eax, 0x40dbe1
push eax
push esi
call edi
push esi
call ebp
cmp byte [eax + 0x40dbdf], 0x22
jne 0x401fee
push esi
call ebp
mov byte [eax + 0x40dbdf], bl
push esi
call fcn.00406470
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [esp], 0x40b05c
push esi
call ebp
push esi
push 0x40d500
call edi
push esi
mov esi, 0x40d9e0
push esi
call edi
push str.vknt.cfg
push esi
call ebp
mov edi, 0x40d500
push str.vknt.tmp
push edi
call ebp
call fcn.0040197d
push 1
pop ebp
push ebp
call fcn.00401a46
push ebx
mov dword [0x40d4fc], eax
call fcn.00401a46
push 2
mov dword [0x40d9c0], eax
call fcn.00401a46
mov dword [0x40db30], eax
mov eax, dword [esp + 0x144]
push esi
mov dword [0x40db40], eax
call fcn.00401cc6
add esp, 0x10
test eax, eax
jne 0x402074
call fcn.00402d56
jmp 0x402079
call fcn.00402dc0
push ebx
push 0x80
push 2
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, 0x800
push str.VietKeyCFGMapping
push esi
push ebx
push 4
push ebx
push eax
mov dword [0x40db4c], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push esi
push ebx
push ebx
push 0xf001f
push eax
mov dword [0x40d640], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x40db34], eax
mov dword [0x40d644], eax
call fcn.00402bbc
mov dword [0x40d2dc], ebx
call fcn.00401da9
call fcn.00402bd5
call fcn.00404a3a
call fcn.0040226c
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [esp + 0x13c], ebx
mov dword [0x40d650], eax
jne 0x40225b
call fcn.00405c21
cmp eax, 0xffffffff
jne 0x402111
or eax, eax
jmp 0x40225f
push ebx
push dword [0x40db40]
push ebx
push ebx
push 0x14a
push 0x172
push 0x5a
push 0x96
push 0x2080000
push str.VIETKEY_4.0
push 0x40d9a0
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
mov dword [0x40d63c], eax
jne 0x402152
push 2
pop eax
jmp 0x40225f
push ebx
push eax
push ebp
call dword [0x40d608]
push 0x50
push 6
mov esi, dword [sym.imp.USER32.dll_RegisterHotKey]
pop edi
push edi
push ebp
push dword [0x40d63c]
call esi
push 0x70
push edi
push 0xb
push dword [0x40d63c]
call esi
push 0x71
push edi
push 0xc
push dword [0x40d63c]
call esi
push 0x72
push edi
push 0xd
push dword [0x40d63c]
call esi
xor ecx, ecx
mov dword [0x40d638], ecx
add ecx, 0x47e
push ebx
movzx eax, cx
push 0x10
push 0x10
push ebp
push eax
push dword [0x40db40]
call dword [sym.imp.USER32.dll_LoadImageA]
mov ecx, dword [0x40d638]
mov dword [ecx*4 + 0x40db60], eax
inc ecx
cmp ecx, 5
mov dword [0x40d638], ecx
jl 0x40219f
cmp dword [0x40d31c], ebx
je 0x402205
movzx eax, byte [0x40d634]
dec eax
je 0x4021f2
dec eax
push ebx
jne 0x402206
call fcn.004022cf
pop ecx
jmp 0x402222
push ebx
push 0x40569e
push dword [0x40d63c]
push 0x92
jmp 0x402216
push ebx
push 0x4046cc
push dword [0x40d63c]
push 0x8f
push dword [0x40db40]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call esi
test eax, eax
je 0x402256
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
jmp 0x402230
call fcn.00405ca0
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 0x10