Function at 0x409d99
Capabilities:
Accept command line arguments
Check if file exists
Copy file
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Move file
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c29e3
mov eax, dword fs:[0]
push eax
mov eax, 0x16f8
call fcn.0053b290
mov eax, dword [0x624500]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0x16dc], ebx
mov dword [ebp - 0x16d4], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call fcn.0047da90
mov dword [esp], 0x20a
lea eax, [ebp - 0xa20]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
lea eax, [ebp - 0xa20]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0xa20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
mov dword [ebp - 0x1018], ebx
mov word [ebp - 0x1028], ax
lea ecx, [ebp - 0x1028]
lea eax, [ebp - 0xa20]
mov dword [ebp - 0x1014], 7
push eax
call fcn.00409d52
push 0xf
pop edi
push edi
push 0x5fd8d4
lea ecx, [ebp - 0x1028]
call fcn.004173e6
mov byte [ebp - 0x16e8], bl
lea ecx, [ebp - 0x1060]
push dword [ebp - 0x16e8]
mov dword [ebp - 0x1050], ebx
push eax
mov dword [ebp - 0x104c], ebx
call fcn.00405f93
lea ecx, [ebp - 0x1028]
call fcn.00406228
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
cmovae eax, dword [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0040bb90
cmp dword [ebp - 0x104c], 8
lea ecx, [ebp - 0x1060]
push 3
cmovae ecx, dword [ebp - 0x1060]
mov esi, eax
lea eax, [ebp - 0x894]
push ecx
lea ecx, [ebp - 0x898]
mov dword [ebp - 0x898], eax
call fcn.00408cbb
mov ecx, dword [ebp - 0x898]
mov dword [ebp - 0x1018], ebx
mov dword [ebp - 0x1014], edi
mov byte [ebp - 0x1028], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409ef8
sub ecx, edx
push ecx
push dword [ebp - 0x898]
lea ecx, [ebp - 0x1028]
call fcn.00416f58
lea eax, [ebp - 0x1028]
mov ecx, esi
push eax
call fcn.00417006
lea ecx, [ebp - 0x1028]
call fcn.00416fe0
lea eax, [ebp - 0x894]
cmp dword [ebp - 0x898], eax
je 0x409f46
push dword [ebp - 0x898]
call fcn.005950fb
pop ecx
call fcn.0040b5cc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x16ec]
call fcn.00409be6
mov eax, dword [ebp - 0x16ec]
cmp dword [eax - 4], 1
jle 0x409f7d
push dword [eax - 0xc]
lea ecx, [ebp - 0x16ec]
call fcn.004058bc
mov eax, dword [ebp - 0x16ec]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00409d77
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1098]
call fcn.00456ec0
lea ecx, [ebp - 0x1028]
call fcn.00406228
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x1064], ecx
mov dword [ebp - 0x1014], ecx
lea ecx, [ebp - 0x1028]
push 0x5fd8f4
mov dword [ebp - 0x1068], ebx
mov word [ebp - 0x1078], ax
mov dword [ebp - 0x1018], ebx
mov word [ebp - 0x1028], ax
call fcn.00409d52
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1098]
call fcn.004578c0
movzx eax, al
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x16e8], eax
call fcn.00406228
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x1010], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1008]
push ebx
push eax
call fcn.0058dad0
mov esi, dword [ebp - 0x16ec]
add esp, 0xc
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x1010]
push esi
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x1010]
pop ecx
pop ecx
push eax
call edi
xor eax, eax
mov dword [ebp - 0x1018], ebx
push 0x5fd900
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x1014], 7
mov word [ebp - 0x1028], ax
call fcn.00409d52
lea eax, [ebp - 0x1078]
push eax
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1098]
call fcn.004578c0
lea ecx, [ebp - 0x1028]
mov byte [ebp - 0x16cd], al
call fcn.00406228
mov ecx, dword [0x5fd7e0]
lea eax, [ebp - 0x1008]
push 0x7f8
mov dword [ebp - 0x1010], ecx
mov ecx, dword [0x5fd7e4]
push ebx
push eax
mov dword [ebp - 0x100c], ecx
call fcn.0058dad0
movzx eax, byte [ebp - 0x16cd]
add esp, 0xc
push eax
push str.___bSilent:_d___
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x1010]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x1010]
push eax
call edi
mov dword [ebp - 4], ebx
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16e0]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16e0]
push 0x104
call fcn.004059b1
push 0x104
lea ecx, [ebp - 0x16e0]
mov esi, eax
call fcn.0040583d
push 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], 1
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16e4]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x16e8], 0
jne 0x40a920
xor eax, eax
mov dword [ebp - 0x1034], ebx
push str.UnInstallCopy
lea ecx, [ebp - 0x1044]
mov dword [ebp - 0x1030], 7
mov word [ebp - 0x1044], ax
call fcn.00409d52
lea eax, [ebp - 0x1044]
push eax
lea eax, [ebp - 0x16fc]
push eax
lea ecx, [ebp - 0x1080]
call fcn.00457ad0
mov edi, dword [ebp - 0x1080]
lea ecx, [ebp - 0x1044]
mov esi, dword [eax]
call fcn.00406228
cmp esi, edi
jne 0x40a5bd
push str._TMP_
lea ecx, [ebp - 0x16cc]
call fcn.00409be6
mov dword [ebp - 4], 2
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16d4]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
call fcn.00408c27
lea eax, [ebp - 0x16cc]
push eax
call fcn.0040911f
lea eax, [ebp - 0x16cc]
push eax
lea ecx, [ebp - 0x16d4]
call fcn.00408b67
mov esi, dword [ebp - 0x16e0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x16cc]
call fcn.0040b5a2
mov edi, 0x104
lea ecx, [ebp - 0x16cc]
push edi
call fcn.004059b1
push str..tmp
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push ecx
lea ecx, [ebp - 0x16cc]
call fcn.00409c2a
push ebx
push dword [ebp - 0x16cc]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40a2fe
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x16cc]
mov edi, eax
push 0x5fd7e0
call fcn.00594f90
pop ecx
push edi
push ebx
push esi
lea ecx, [ebp - 0x810]
lea ecx, [ecx + eax*2]
push str.Copy_File__s_to__s_failed__errcode:_d
push ecx
call fcn.0040988e
add esp, 0x14
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a596
push dword [ebp - 0x16cc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a596
push dword [esi - 0xc]
lea ecx, [ebp - 0x16e0]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ecx
lea ecx, [ebp - 0x16e0]
call fcn.00409c2a
push edi
lea ecx, [ebp - 0x16e0]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push ecx
lea ecx, [ebp - 0x16e0]
call fcn.00409c2a
push 0x44
pop esi
push esi
lea eax, [ebp - 0x858]
push ebx
push eax
call fcn.0058dad0
xor eax, eax
mov dword [ebp - 0x858], esi
lea edi, [ebp - 0x103c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], 3
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16dc]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x16ec]
cmp dword [eax - 4], 1
jle 0x40a3b4
push dword [eax - 0xc]
lea ecx, [ebp - 0x16ec]
call fcn.004058bc
mov eax, dword [ebp - 0x16ec]
mov esi, dword [ebp - 0x16e0]
push eax
push str.UnInstallCopy
push esi
push str.UnInstallAppPath
lea eax, [ebp - 0x16dc]
push str.___s__s___s__s_
push eax
call fcn.00408d79
mov eax, dword [ebp - 0x16d4]
lea ecx, [ebp - 0x16d4]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004059b1
mov edi, dword [ebp - 0x16dc]
mov dword [ebp - 0x16e8], eax
cmp dword [edi - 4], 1
jle 0x40a41a
push dword [edi - 0xc]
lea ecx, [ebp - 0x16dc]
call fcn.004058bc
mov edi, dword [ebp - 0x16dc]
mov eax, dword [ebp - 0x16e8]
lea ecx, [ebp - 0x103c]
push ecx
lea ecx, [ebp - 0x858]
push ecx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push dword [ebp - 0x16cc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40a4b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5fd7e0]
mov ebx, eax
push 0x7f8
lea eax, [ebp - 0x808]
mov dword [ebp - 0x810], ecx
mov ecx, dword [0x5fd7e4]
push 0
push eax
mov dword [ebp - 0x80c], ecx
call fcn.0058dad0
add esp, 0xc
push ebx
push str.CreateProcess_failed___d_._n
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x16dc], 1
jmp 0x40a58e
push dword [ebp - 0x1038]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x103c]
call ebx
mov eax, dword [0x5fd7e0]
xor ebx, ebx
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.___________________TMP
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
mov ebx, dword [ebp - 0x16cc]
add esp, 0xc
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
push ebx
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov dword [ebp - 0x16dc], eax
lea ecx, [edi - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16d4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16cc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ebx, dword [ebp - 0x16dc]
jmp 0x40b53f
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 0x1030], ecx
lea ecx, [ebp - 0x1044]
push str.UnInstallAppPath
mov dword [ebp - 0x1018], ebx
mov word [ebp - 0x1028], ax
mov dword [ebp - 0x1034], ebx
mov word [ebp - 0x1044], ax
call fcn.00409d52
lea eax, [ebp - 0x1028]
push eax
lea eax, [ebp - 0x1044]
push eax
lea ecx, [ebp - 0x1098]
call fcn.004578c0
lea ecx, [ebp - 0x1044]
call fcn.00406228
cmp dword [ebp - 0x1018], 0
jne 0x40a641
lea ecx, [ebp - 0x1044]
call fcn.0040baad
push eax
lea ecx, [ebp - 0x1028]
call fcn.00405fb8
xor eax, eax
inc eax
jmp 0x40a647
mov eax, dword [ebp - 0x16d4]
test al, 1
je 0x40a656
lea ecx, [ebp - 0x1044]
call fcn.00406228
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
lea ecx, [ebp - 0x16d4]
cmovae eax, dword [ebp - 0x1028]
push eax
call fcn.00409be6
lea eax, [ebp - 0x16d4]
push eax
lea ecx, [ebp - 0x16e4]
call fcn.00408b67
mov ecx, dword [ebp - 0x16d4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov eax, dword [ebp - 0x16e4]
lea ecx, [ebp - 0x16e4]
push dword [eax - 0xc]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push ecx
lea ecx, [ebp - 0x16e4]
call fcn.00409c2a
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.___________________nArgc
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edi, dword [ebp - 0x16e4]
lea ecx, [edi - 0x10]
call fcn.00405dc6
add eax, 0x10
lea ecx, [ebp - 0x16d4]
push 0x104
mov dword [ebp - 0x16d4], eax
call fcn.004059b1
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.Uninst.dar0
push eax
call esi
push ecx
lea ecx, [ebp - 0x16d4]
call fcn.00409c2a
lea ecx, [edi - 0x10]
call fcn.00405dc6
add eax, 0x10
lea ecx, [ebp - 0x16dc]
push 0x104
mov dword [ebp - 0x16dc], eax
call fcn.004059b1
push str.Uninst.dar1
push eax
call esi
push ecx
lea ecx, [ebp - 0x16dc]
call fcn.00409c2a
mov edi, dword [ebp - 0x16d4]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x16dc]
test eax, eax
je 0x40a891
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a891
call fcn.00408bc2
push edi
mov ecx, eax
call fcn.0041a920
test eax, eax
jne 0x40a827
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push 0x5fd7e0
call fcn.00594f90
pop ecx
push edi
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push str.DoLua__s_failed_
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40a900
call fcn.00408bc2
push esi
mov ecx, eax
call fcn.0041a920
test eax, eax
jne 0x40a871
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push 0x5fd7e0
call fcn.00594f90
pop ecx
push esi
jmp 0x40a7fe
lea ecx, [esi - 0x10]
call fcn.00405f2b
lea ecx, [edi - 0x10]
call fcn.00405f2b
lea ecx, [ebp - 0x1028]
call fcn.00406228
jmp 0x40aaf5
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push 0x5fd7e0
call fcn.00594f90
pop ecx
push esi
lea ecx, [ebp - 0x810]
push edi
lea eax, [ecx + eax*2]
push str.pathGlobalVarLua___s__r_n_pathUnInstallLua___s
push eax
call fcn.0040988e
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x10
push 0x5fdb20
push 0x5fdb28
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esi - 0x10]
call fcn.00405f2b
lea ecx, [edi - 0x10]
call fcn.00405f2b
lea ecx, [ebp - 0x1028]
call fcn.00406228
jmp 0x40aadf
lea ecx, [ebp - 0x1028]
call fcn.0040baad
cmp dword [eax + 0x14], 8
jb 0x40a933
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x16d4]
call fcn.00409be6
lea eax, [ebp - 0x16d4]
push eax
lea ecx, [ebp - 0x16e4]
call fcn.00408b67
mov ecx, dword [ebp - 0x16d4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
lea ecx, [ebp - 0x1028]
call fcn.00406228
mov eax, dword [ebp - 0x16e4]
lea ecx, [ebp - 0x16e4]
push dword [eax - 0xc]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push ecx
lea ecx, [ebp - 0x16e4]
call fcn.00409c2a
lea eax, [ebp - 0x102c]
push eax
call fcn.00474580
lea ecx, [ebp - 0x1048]
mov dword [esp], str..._resourceluaGlobal_var.lua
push ecx
mov ecx, eax
call fcn.0040ba20
lea ecx, [ebp - 0x102c]
call fcn.00405f7b
call fcn.00408bc2
cmp dword [ebp - 0x1034], 8
lea ecx, [ebp - 0x1048]
cmovae ecx, dword [ebp - 0x1048]
push ecx
mov ecx, eax
call fcn.0041a920
test eax, eax
jne 0x40aa17
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.DoLua_failed__GLOBAL_VAR.LUA
jmp 0x40aaaf
lea eax, [ebp - 0x10b4]
push eax
call fcn.00474580
lea ecx, [ebp - 0x102c]
mov dword [esp], str..._resourceluaUninstScript.lua
push ecx
mov ecx, eax
call fcn.0040ba20
push eax
lea ecx, [ebp - 0x1048]
call fcn.0040b931
lea ecx, [ebp - 0x102c]
call fcn.00405f7b
lea ecx, [ebp - 0x10b4]
call fcn.00405f7b
call fcn.00408bc2
cmp dword [ebp - 0x1034], 8
lea ecx, [ebp - 0x1048]
cmovae ecx, dword [ebp - 0x1048]
push ecx
mov ecx, eax
call fcn.0041a920
test eax, eax
jne 0x40aaea
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.DoResLua_failed__UninstScript.LUA
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call edi
lea ecx, [ebp - 0x1048]
call fcn.00405f7b
mov esi, dword [ebp - 0x16e0]
jmp 0x40b53f
lea ecx, [ebp - 0x1048]
call fcn.00405f7b
call fcn.00408bc2
mov edx, str.global_app_id
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x16cc], esi
call fcn.00431e30
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00431770
pop ecx
mov edi, eax
mov ecx, esi
push 0xfffffffffffffffe
pop edx
mov dword [ebp - 0x16d4], edi
call fcn.00431120
mov edx, str.global_uinstall_mutex_guid
call fcn.00431e30
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.004319b0
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16f8]
call fcn.00409c4a
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.00431120
mov edx, str.global_install_mutex_guid
call fcn.00431e30
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.004319b0
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16f4]
call fcn.00409c4a
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.00431120
mov ecx, dword [esi + 8]
xor eax, eax
cmp byte [ebp - 0x16cd], al
mov edx, str.global_unstall_slient
setne al
mov dword [ecx], eax
mov dword [ecx + 4], 0x7ff7a501
mov ecx, esi
add dword [esi + 8], 8
call fcn.004320b0
mov eax, dword [ebp - 0x16f4]
cmp dword [eax - 0xc], ebx
je 0x40abd1
or dword [ebp - 4], 0xffffffff
push 0x5fcef8
push eax
call fcn.005950bb
pop ecx
pop ecx
test eax, eax
je 0x40abd1
mov edi, ebx
jmp 0x40abea
mov esi, str.GlobalA043B702_166A_4FB8_9733_E2BC4713F36F
push esi
call fcn.00594f90
pop ecx
push eax
push esi
lea ecx, [ebp - 0x16f4]
call fcn.00409b39
mov ecx, dword [ebp - 0x16f4]
mov edx, 0x5fcef8
push edi
call fcn.004304b0
mov esi, dword [ebp - 0x16e0]
mov edi, eax
mov dword [ebp - 0x16fc], edi
pop ecx
test edi, edi
je 0x40ac42
push ebx
push 0x5fdd34
push 0x5fdd3c
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push str.CDlgInstall
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x40b518
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
jmp 0x40b518
mov eax, dword [ebp - 0x16f8]
cmp dword [eax - 0xc], ebx
je 0x40ac66
or dword [ebp - 4], 0xffffffff
push 0x5fcef8
push eax
call fcn.005950bb
pop ecx
pop ecx
test eax, eax
je 0x40ac66
mov eax, ebx
jmp 0x40ac85
mov edi, str.GlobalFE1A11F2_E01F_4421_90FD_2409A1BA5EFD
push edi
call fcn.00594f90
pop ecx
push eax
push edi
lea ecx, [ebp - 0x16f8]
call fcn.00409b39
mov eax, dword [ebp - 0x16d4]
mov ecx, dword [ebp - 0x16f8]
mov edx, str.CDlgUnInstall
push eax
call fcn.004304b0
mov edi, eax
mov dword [ebp - 0x1030], edi
pop ecx
test edi, edi
je 0x40ad01
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.CreateAppInstance_return_true
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40b507
mov edx, dword [ebp - 0x16e4]
lea ecx, [ebp - 0x16d4]
call fcn.0040926c
mov edx, dword [ebp - 0x16d4]
mov ecx, dword [ebp - 0x16cc]
call fcn.00431c20
mov ecx, dword [ebp - 0x16d4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16cc]
mov edx, str.global_install_path
call fcn.004320b0
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push 0x5fd7e0
call fcn.00594f90
pop ecx
push dword [ebp - 0x16e4]
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call fcn.004174b7
call fcn.004174b7
mov ecx, eax
call fcn.00417504
mov ecx, dword [ebp - 0x16cc]
mov edx, str.global_uninstall_useui
call fcn.00431e30
mov ecx, dword [ebp - 0x16cc]
or edx, 0xffffffff
call fcn.00431930
mov ecx, dword [ebp - 0x16cc]
push 0xfffffffffffffffe
pop edx
mov dword [ebp - 0x16d4], eax
call fcn.00431120
mov edx, str.global_product_name
call fcn.00431e30
mov ecx, dword [ebp - 0x16cc]
or edx, 0xffffffff
push ebx
call fcn.004319b0
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16f0]
call fcn.00409c4a
mov ecx, dword [ebp - 0x16cc]
push 0xfffffffffffffffe
pop edx
call fcn.00431120
mov dword [ebp - 4], 6
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16dc]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x16dc]
push dword [ebp - 0x16f0]
push 0x5fde30
push eax
call fcn.004057e8
mov ecx, dword [ebp - 0x16cc]
add esp, 0xc
mov edx, str.global_uninstall_no_prompt
call fcn.00431e30
or edx, 0xffffffff
mov ecx, dword [ebp - 0x16cc]
call fcn.00431930
mov ecx, dword [ebp - 0x16cc]
push 0xfffffffffffffffe
pop edx
mov dword [ebp - 0x16e0], eax
call fcn.00431120
cmp dword [ebp - 0x16e8], 0
jne 0x40b327
cmp dword [ebp - 0x16d4], 0
je 0x40b1d6
cmp byte [ebp - 0x16cd], 0
jne 0x40b1d6
push ecx
mov eax, esp
mov dword [ebp - 0x16d8], ebx
push ecx
lea ecx, [ebp - 0x16d8]
mov dword [ebp - 0x16d4], ebx
mov dword [eax], 0x3e7
mov eax, esp
mov dword [eax], 0x5fdee8
call fcn.00409cf9
test al, al
jne 0x40afec
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.d:_svn_trunkdtlsetupdtluninstalldtluninstall.cpp
push str.LoadResource_failed._type_:_XML__id_:_LAYOUT.XMLxm_file:_s_r_n
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push 0x122
push str.LoadResource_failed._type_:_XML__id_:_LAYOUT.XMLxm_line:_d_r_n
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5fd7e0
mov ebx, eax
call fcn.00594f90
pop ecx
push ebx
push str.LoadResource_failed._type_:_XML__id_:_LAYOUT.XMLxm_err:_d_r_n
lea ecx, [ebp - 0x810]
lea ecx, [ecx + eax*2]
push ecx
call fcn.0040988e
add esp, 0xc
jmp 0x40b171
push dword [ebp - 0x16d8]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x16e8], eax
test eax, eax
jne 0x40b10d
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.d:_svn_trunkdtlsetupdtluninstalldtluninstall.cpp
push str.LockResource_failed.xm_file:_s_r_n
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push 0x129
push str.LockResource_failed.xm_line:_d_r_n
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5fd7e0
mov ebx, eax
call fcn.00594f90
pop ecx
push ebx
push str.LockResource_failed.xm_err:_d_r_n
jmp 0x40afd5
push dword [ebp - 0x16d4]
push dword [0x62a260]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
jne 0x40b19c
mov eax, dword [0x5fd7e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd7e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058dad0
add esp, 0xc
push str.ResSize__0_r_n
push 0x5fd7e0
call fcn.00594f90
pop ecx
lea ecx, [ebp - 0x810]
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
pop ecx
pop ecx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x16d8], 0
je 0x40b4e9
push dword [ebp - 0x16d8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b4e9
push ecx
push ecx
mov eax, esp
push ecx
push dword [ebp - 0x16e8]
mov dword [eax], 0x5fcef8
mov dword [eax + 4], ebx
call fcn.0047df40
add esp, 0x10
cmp dword [ebp - 0x16d8], 0
je 0x40b39e
push dword [ebp - 0x16d8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b39e
mov dword [ebp - 4], 7
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16e8]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x16e8]
push dword [ebp - 0x16f0]
push 0x5fde58
push eax
call fcn.004057e8
mov edi, dword [ebp - 0x16e8]
add esp, 0xc
cmp byte [ebp - 0x16cd], 0
jne 0x40b23d
cmp dword [ebp - 0x16e0], 0
jne 0x40b23d
push 0x21
push dword [ebp - 0x16dc]
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x40b314
call fcn.004174b7
mov ecx, eax
call fcn.004175fc
mov ecx, dword [ebp - 0x16cc]
mov edx, str.global_uninstall_tips
call fcn.00431e30
mov ecx, dword [ebp - 0x16cc]
or edx, 0xffffffff
push ebx
call fcn.004319b0
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16d4]
call fcn.00409c4a
mov ecx, dword [ebp - 0x16cc]
push 0xfffffffffffffffe
pop edx
call fcn.00431120
mov eax, dword [ebp - 0x16d4]
cmp dword [eax - 0xc], ebx
je 0x40b2a4
or dword [ebp - 4], 0xffffffff
push 0x5fcef8
push eax
call fcn.005950bb
pop ecx
pop ecx
test eax, eax
jne 0x40b2be
push dword [ebp - 0x16f0]
lea eax, [ebp - 0x16d4]
push 0x5fdea0
push eax
call fcn.004057e8
add esp, 0xc
cmp byte [ebp - 0x16cd], 0
jne 0x40b2e5
cmp dword [ebp - 0x16e0], 0
jne 0x40b2e5
push 0x40
push dword [ebp - 0x16dc]
push dword [ebp - 0x16d4]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004174b7
mov ecx, eax
call fcn.0041767d
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.004174b7
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x16d4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
lea ecx, [edi - 0x10]
call fcn.00405f2b
mov edi, dword [ebp - 0x1030]
jmp 0x40b4e9
lea eax, [ebp - 0x10b4]
push eax
call fcn.00474580
lea ecx, [ebp - 0x102c]
mov dword [esp], str...ResSkinUninst
push ecx
mov ecx, eax
call fcn.0040ba20
lea ecx, [ebp - 0x10b4]
call fcn.00405f7b
cmp dword [ebp - 0x1018], 8
lea ecx, [ebp - 0x102c]
cmovae ecx, dword [ebp - 0x102c]
push ecx
push ecx
mov edx, esp
lea eax, [ecx + 2]
mov dword [ebp - 0x1030], eax
mov dword [edx], ecx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b376
sub ecx, dword [ebp - 0x1030]
sar ecx, 1
mov dword [edx + 4], ecx
call fcn.0047dde0
pop ecx
pop ecx
lea ecx, [ebp - 0x102c]
call fcn.00405f7b
push str.Shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x1030], eax
test eax, eax
je 0x40b3d3
push str.SetProcessDpiAwareness
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b3c7
push 2
call eax
push dword [ebp - 0x1030]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 3
call fcn.004f85e0
pop ecx
lea ecx, [ebp - 0x1034]
call fcn.0040b640
push ecx
mov ecx, dword [eax]
call fcn.0045a5c0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x1030]
test ecx, ecx
je 0x40b404
call fcn.0040f1cc
or dword [ebp - 4], 0xffffffff
call fcn.0045c140
mov ecx, eax
call fcn.0045c260
call fcn.0045d7c0
push ecx
mov ecx, eax
call fcn.0045d960
lea ecx, [ebp - 0x16c8]
call fcn.004062e1
push ebx
mov eax, SysReAllocString
push eax
push eax
push eax
push eax
push 0x100
push 0x96c80000
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x16c8]
push ebx
mov dword [eax], 0x5fcef8
mov dword [eax + 4], ebx
call fcn.00480180
call fcn.00477d50
call fcn.0047e260
lea ecx, [ebp - 0x1704]
call fcn.0040b640
mov ecx, dword [eax]
call fcn.0045aa90
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1700]
test ecx, ecx
je 0x40b48b
call fcn.0040f1cc
or dword [ebp - 4], 0xffffffff
call fcn.0045c140
mov ecx, eax
call fcn.0045c3e0
call fcn.0045d7c0
mov ecx, eax
call fcn.0045db10
call fcn.004174b7
call fcn.004f8590
call dword [sym.imp.ole32.dll_CoUninitialize]
push 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call ebx
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
push 4
cmovae eax, dword [ebp - 0x1060]
push 0
push eax
call ebx
lea ecx, [ebp - 0x16c8]
call fcn.0040646d
mov ecx, dword [ebp - 0x16dc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16f0]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
xor ebx, ebx
test edi, edi
je 0x40b523
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x16fc]
test edi, edi
je 0x40b523
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x16f4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16f8]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16e4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
lea ecx, [esi - 0x10]
call fcn.00405f2b
lea ecx, [ebp - 0x1078]
call fcn.00406228
lea ecx, [ebp - 0x1098]
call fcn.00457060
mov ecx, dword [ebp - 0x16ec]
add ecx, 0xfffffff0
call fcn.00405f2b
lea ecx, [ebp - 0x1060]
call fcn.00406228
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053a175
leave
ret 0x10