Function at 0x409794
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Delete registry key
Get file attributes
Get graphical window text
Get installed programs
Hide graphical window
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa84
mov eax, dword [0x424064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
test edi, edi
je 0x4097c1
push 0x3ee
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push str.Start_Install_Process...
call fcn.00407e9b
cmp dword [0x425418], 0
mov eax, str.__x86_
mov ecx, str.__x64_
mov dword [esp], 0x4253f8
cmove ecx, eax
push ecx
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push eax
push str.WinVer:__08X_s__LiuVer:__s
call fcn.00407e9b
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
add esp, 0x10
test ebx, ebx
je 0x40982c
push 0x50000
push 0
push 0x401
push ebx
call esi
push 0
push 1
push 0x404
push ebx
call esi
push 0
push 0
push 0x405
push ebx
call esi
cmp dword [0x42498c], 0
je 0x40986c
push 0x14
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x30
lea eax, [ebp - 0x2c]
push eax
push 0x41b820
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00407da2
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x40a073
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
test edi, edi
je 0x40989b
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xa0
push 0
call esi
lea eax, [ebp - 0xf4]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push str.LiuPack
push 0x425640
mov dword [ebp - 0xa7c], eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
call fcn.0040a0cf
test eax, eax
jne 0x409903
test edi, edi
je 0x4098d1
push 0x14
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xaa
push 0
call esi
push 0x30
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xf4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40a073
push 0x425640
push 0x424fe8
lea eax, [ebp - 0xa40]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0xa7c]
add eax, 0xc8
push eax
call fcn.0040a084
add esp, 0x14
test ebx, ebx
je 0x409947
push 0
push 0
push 0x405
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x4251f0
lea eax, [ebp - 0x630]
push str._sBoshiamyTIPuninst.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409994
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x409994
push 4
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
lea eax, [ebp - 0xa7c]
push eax
push 0x20206
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.BoshiamyTIP
push dword [ebp - 0xa7c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0xa7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x4099f8
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xa1
push 0
call esi
lea eax, [ebp - 0xf4]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp dword [0x425418], 0
mov ecx, str.unliu.exe
mov dword [ebp - 0xa7c], eax
mov eax, str.unliu64.exe
cmove eax, ecx
mov dword [ebp - 0xa78], str.BoshiamyTIP.dll
push 0x64
mov dword [ebp - 0xa44], eax
lea eax, [ebp - 0xf4]
push eax
push 0xa2
push 0
mov dword [ebp - 0xa74], str.BoshiamyTIP_x64.dll
mov dword [ebp - 0xa70], str.liu_uni.tab
mov dword [ebp - 0xa6c], str.liu_uni2.tab
mov dword [ebp - 0xa68], str.liu_uni3.tab
mov dword [ebp - 0xa64], str.liu_uni4.tab
mov dword [ebp - 0xa60], str.liuphon.tab
mov dword [ebp - 0xa5c], str.BoshiamyConfig.exe
mov dword [ebp - 0xa58], str.LiuBoxEditor.exe
mov dword [ebp - 0xa54], str.manual_j.pdf
mov dword [ebp - 0xa50], str.AssociatedPhrases.cin
mov dword [ebp - 0xa4c], str.liuext.tab
mov dword [ebp - 0xa48], str.LiuQuery.exe
call esi
push 0x4251f0
lea eax, [ebp - 0x428]
push str._sBoshiamyTIP
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x409b3d
push 0
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x409b3d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x428]
push eax
push str.Error:_CreateDirectory____s___ErrCode__X_
call fcn.00407e9b
add esp, 0xc
test edi, edi
je 0x409b1d
push 0x14
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xab
push 0
call esi
lea eax, [ebp - 0xa78]
push dword [eax - 4]
jmp 0x40a03a
mov eax, dword [ebp - 0xa7c]
add eax, 0xc8
push eax
call fcn.0040a084
and dword [ebp - 0xa80], 0
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0xa84], eax
test edi, edi
je 0x409b9d
mov ecx, dword [ebp - 0xa80]
lea eax, [ebp - 0xf4]
push dword [ebp + ecx*4 - 0xa78]
push eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x1bc]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [ebp - 0xa80]
mov eax, dword [ebp + eax*4 - 0xa78]
push eax
mov dword [ebp - 0xa7c], eax
lea eax, [ebp - 0xa40]
push eax
lea eax, [ebp - 0x630]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push dword [ebp - 0xa7c]
lea eax, [ebp - 0x428]
push 0x4251f0
push str._sBoshiamyTIP_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409c63
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
push dword [ebp - 0xa7c]
lea eax, [ebp - 0x838]
push 0x4251f0
push str._sBoshiamyTIP_s._lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x838]
push 0
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x409fe9
push 5
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov dword [0x425638], 1
jmp 0x409c81
push 0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
je 0x409fe9
mov eax, dword [ebp - 0xa84]
add eax, 0x42
push eax
call fcn.0040a084
mov eax, dword [ebp - 0xa80]
inc eax
mov dword [ebp - 0xa80], eax
pop ecx
cmp eax, 0xe
jb 0x409b56
test ebx, ebx
je 0x409cbb
push 0
push 0
push 0x405
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x409ce4
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xa3
push 0
call esi
lea eax, [ebp - 0xf4]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x32
mov dword [ebp - 0xa80], eax
lea eax, [ebp - 0x158]
push eax
push 0x85
push 0
call esi
push 0x424bd8
lea eax, [ebp - 0x630]
push str._s_regsvr32
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x4251f0
lea eax, [ebp - 0x838]
push str._sBoshiamyTIP
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x220]
push str._s_BoshiamyTIP.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.00407e2a
lea eax, [ebp - 0x220]
push str._s_BoshiamyTIP_x64.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 0
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.00407e2a
add esp, 0x48
lea eax, [ebp - 0xa70]
push eax
push 0x42488c
push 0x424956
nop
nop
nop
nop
nop
push 0x4251f0
lea eax, [ebp - 0x428]
push str._sBoshiamyTIPBoshiamyTIP.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov dword [ebp - 0xa7c], eax
cmp eax, 0xffffffff
jne 0x409e1f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Error:_registration___ErrCode__X_
call fcn.00407e9b
pop ecx
pop ecx
test edi, edi
je 0x409e0c
push 0x14
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xac
jmp 0x4098df
mov esi, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea ecx, [ebp - 0xa84]
push 0
push ecx
push 0x30
lea ecx, [ebp - 0xa70]
push ecx
push eax
call esi
push 0
lea eax, [ebp - 0xa84]
push eax
push 0x42488c
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
add eax, eax
push eax
push 0x42488c
push dword [ebp - 0xa7c]
call esi
push dword [ebp - 0xa7c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0xa80]
add eax, 0xc8
push eax
call fcn.0040a084
pop ecx
test ebx, ebx
je 0x409e90
push 0
push 0
push 0x405
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x409ebd
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xa4
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0xf4]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
mov dword [ebp - 0xa84], eax
call fcn.004094be
test eax, eax
jne 0x409f00
test edi, edi
je 0x409ee5
push 0x14
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xaf
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
jmp 0x4098e3
mov eax, dword [ebp - 0xa84]
add eax, 0xc8
push eax
call fcn.0040a084
pop ecx
test ebx, ebx
je 0x409f26
push 0
push 0
push 0x405
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x409f53
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xa6
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0xf4]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
call esi
mov esi, eax
lea eax, [ebp - 0xa40]
push eax
call fcn.00407cde
lea eax, [esi + 0xc8]
push eax
call fcn.0040a084
push 0x80
push dword [0x4249cc]
call fcn.0040a2ea
add esp, 0x10
test al, al
jne 0x409f9a
test ebx, ebx
je 0x409f9a
push 0
push 0
push 0x405
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
je 0x409fdc
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xa7
push 0
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0xf4]
push eax
push 0x3f3
push edi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 5
push 0x3f4
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.00407d6d
xor eax, eax
inc eax
jmp 0x40a075
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0xa80]
push str.Error:_CopyFile____02d____s____s___ErrCode__X_
call fcn.00407e9b
add esp, 0x14
test edi, edi
je 0x40a022
push 0x14
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [ebp - 0xf4]
push eax
push 0xab
push 0
call esi
push dword [ebp - 0xa7c]
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x1bc]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x2c]
push 0x30
push eax
lea eax, [ebp - 0x1bc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call fcn.004093ff
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a558
leave
ret