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 0x5c2713
mov eax, dword fs:[0]
push eax
mov eax, 0x16fc
call fcn.0053af80
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 - 0x16d4], ebx
mov dword [ebp - 0x16cc], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
call fcn.0047da60
mov dword [esp], 0x20a
lea eax, [ebp - 0xa20]
push ebx
push eax
call fcn.0058d810
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 0x5fd7d4
lea ecx, [ebp - 0x1028]
call fcn.004172c6
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.0040ba70
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.00408c34
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.00416e38
lea eax, [ebp - 0x1028]
mov ecx, esi
push eax
call fcn.00416ee6
lea ecx, [ebp - 0x1028]
call fcn.00416ec0
lea eax, [ebp - 0x894]
cmp dword [ebp - 0x898], eax
je 0x409f46
push dword [ebp - 0x898]
call fcn.00594e3b
pop ecx
call fcn.0040b4ab
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x16e4]
call fcn.00409be6
mov eax, dword [ebp - 0x16e4]
cmp dword [eax - 4], 1
jle 0x409f7d
push dword [eax - 0xc]
lea ecx, [ebp - 0x16e4]
call fcn.004058bc
mov eax, dword [ebp - 0x16e4]
push eax
lea ecx, [ebp - 0x1028]
call fcn.00409d77
lea eax, [ebp - 0x1028]
push eax
lea ecx, [ebp - 0x1098]
call fcn.00456dd0
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 0x5fd7f4
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.004577d0
movzx eax, al
lea ecx, [ebp - 0x1028]
mov dword [ebp - 0x16e8], eax
call fcn.00406228
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x1010], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x100c], eax
lea eax, [ebp - 0x1008]
push ebx
push eax
call fcn.0058d810
mov esi, dword [ebp - 0x16e4]
add esp, 0xc
push 0x5fd6e0
call fcn.00594cd0
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
mov dword [ebp - 4], ebx
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16d8]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16d8]
push 0x104
call fcn.004059b1
push 0x104
lea ecx, [ebp - 0x16d8]
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 - 0x16e0]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x16e8], 0
jne 0x40a86d
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.004579e0
mov edi, dword [ebp - 0x1080]
lea ecx, [ebp - 0x1044]
mov esi, dword [eax]
call fcn.00406228
cmp esi, edi
jne 0x40a50a
push str._TMP_
lea ecx, [ebp - 0x16d0]
call fcn.00409be6
mov dword [ebp - 4], 2
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16cc]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
call fcn.00408ba0
lea eax, [ebp - 0x16d0]
push eax
call fcn.0040911f
lea eax, [ebp - 0x16d0]
push eax
lea ecx, [ebp - 0x16cc]
call fcn.00408ae0
mov esi, dword [ebp - 0x16d8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x16d0]
call fcn.0040b481
mov edi, 0x104
lea ecx, [ebp - 0x16d0]
push edi
call fcn.004059b1
push str..tmp
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
push ecx
lea ecx, [ebp - 0x16d0]
call fcn.00409c2a
push ebx
push dword [ebp - 0x16d0]
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40a24b
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 0x16d0]
mov edi, eax
push 0x5fd6e0
call fcn.00594cd0
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 0x40a4e3
push dword [ebp - 0x16d0]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a4e3
push dword [esi - 0xc]
lea ecx, [ebp - 0x16d8]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push ecx
lea ecx, [ebp - 0x16d8]
call fcn.00409c2a
push edi
lea ecx, [ebp - 0x16d8]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathQuoteSpacesW]
push ecx
lea ecx, [ebp - 0x16d8]
call fcn.00409c2a
push 0x44
pop esi
push esi
lea eax, [ebp - 0x858]
push ebx
push eax
call fcn.0058d810
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 - 0x16d4]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x16e4]
cmp dword [eax - 4], 1
jle 0x40a301
push dword [eax - 0xc]
lea ecx, [ebp - 0x16e4]
call fcn.004058bc
mov eax, dword [ebp - 0x16e4]
mov esi, dword [ebp - 0x16d8]
push eax
push str.UnInstallCopy
push esi
push str.UnInstallAppPath
lea eax, [ebp - 0x16d4]
push str.___s__s___s__s_
push eax
call fcn.00408cf2
mov eax, dword [ebp - 0x16cc]
lea ecx, [ebp - 0x16cc]
add esp, 0x18
push dword [eax - 0xc]
call fcn.004059b1
mov edi, dword [ebp - 0x16d4]
mov dword [ebp - 0x16e8], eax
cmp dword [edi - 4], 1
jle 0x40a367
push dword [edi - 0xc]
lea ecx, [ebp - 0x16d4]
call fcn.004058bc
mov edi, dword [ebp - 0x16d4]
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 - 0x16d0]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40a401
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5fd6e0]
mov ebx, eax
push 0x7f8
lea eax, [ebp - 0x808]
mov dword [ebp - 0x810], ecx
mov ecx, dword [0x5fd6e4]
push 0
push eax
mov dword [ebp - 0x80c], ecx
call fcn.0058d810
add esp, 0xc
push ebx
push str.CreateProcess_failed___d_._n
push 0x5fd6e0
call fcn.00594cd0
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 - 0x16d4], 1
jmp 0x40a4db
push dword [ebp - 0x1038]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x103c]
call ebx
mov eax, dword [0x5fd6e0]
xor ebx, ebx
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.___________________TMP
push 0x5fd6e0
call fcn.00594cd0
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 [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
mov ebx, dword [ebp - 0x16d0]
add esp, 0xc
push 0x5fd6e0
call fcn.00594cd0
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 - 0x16d4], eax
lea ecx, [edi - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16cc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16d0]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ebx, dword [ebp - 0x16d4]
jmp 0x40b41e
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.004577d0
lea ecx, [ebp - 0x1044]
call fcn.00406228
cmp dword [ebp - 0x1018], 0
jne 0x40a58e
lea ecx, [ebp - 0x1044]
call fcn.0040b98d
push eax
lea ecx, [ebp - 0x1028]
call fcn.00405fb8
xor eax, eax
inc eax
jmp 0x40a594
mov eax, dword [ebp - 0x16cc]
test al, 1
je 0x40a5a3
lea ecx, [ebp - 0x1044]
call fcn.00406228
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
lea ecx, [ebp - 0x16cc]
cmovae eax, dword [ebp - 0x1028]
push eax
call fcn.00409be6
lea eax, [ebp - 0x16cc]
push eax
lea ecx, [ebp - 0x16e0]
call fcn.00408ae0
mov ecx, dword [ebp - 0x16cc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov eax, dword [ebp - 0x16e0]
lea ecx, [ebp - 0x16e0]
push dword [eax - 0xc]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push ecx
lea ecx, [ebp - 0x16e0]
call fcn.00409c2a
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.___________________nArgc
push 0x5fd6e0
call fcn.00594cd0
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 - 0x16e0]
lea ecx, [edi - 0x10]
call fcn.00405dc6
add eax, 0x10
lea ecx, [ebp - 0x16cc]
push 0x104
mov dword [ebp - 0x16cc], 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 - 0x16cc]
call fcn.00409c2a
lea ecx, [edi - 0x10]
call fcn.00405dc6
add eax, 0x10
lea ecx, [ebp - 0x16d4]
push 0x104
mov dword [ebp - 0x16d4], eax
call fcn.004059b1
push str.Uninst.dar1
push eax
call esi
push ecx
lea ecx, [ebp - 0x16d4]
call fcn.00409c2a
mov edi, dword [ebp - 0x16cc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x16d4]
test eax, eax
je 0x40a7de
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a7de
call fcn.00408b3b
push edi
mov ecx, eax
call fcn.0041a7f0
test eax, eax
jne 0x40a774
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push 0x5fd6e0
call fcn.00594cd0
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 0x40a84d
call fcn.00408b3b
push esi
mov ecx, eax
call fcn.0041a7f0
test eax, eax
jne 0x40a7be
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push 0x5fd6e0
call fcn.00594cd0
pop ecx
push esi
jmp 0x40a74b
lea ecx, [esi - 0x10]
call fcn.00405f2b
lea ecx, [edi - 0x10]
call fcn.00405f2b
lea ecx, [ebp - 0x1028]
call fcn.00406228
jmp 0x40aa42
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push 0x5fd6e0
call fcn.00594cd0
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 0x5fd9f8
push 0x5fda00
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 0x40aa2c
lea ecx, [ebp - 0x1028]
call fcn.0040b98d
cmp dword [eax + 0x14], 8
jb 0x40a880
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x16cc]
call fcn.00409be6
lea eax, [ebp - 0x16cc]
push eax
lea ecx, [ebp - 0x16e0]
call fcn.00408ae0
mov ecx, dword [ebp - 0x16cc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
lea ecx, [ebp - 0x1028]
call fcn.00406228
mov eax, dword [ebp - 0x16e0]
lea ecx, [ebp - 0x16e0]
push dword [eax - 0xc]
call fcn.004059b1
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
push ecx
lea ecx, [ebp - 0x16e0]
call fcn.00409c2a
lea eax, [ebp - 0x102c]
push eax
call fcn.00474470
lea ecx, [ebp - 0x1048]
mov dword [esp], str..._resourceluaGlobal_var.lua
push ecx
mov ecx, eax
call fcn.0040b900
lea ecx, [ebp - 0x102c]
call fcn.00405f7b
call fcn.00408b3b
cmp dword [ebp - 0x1034], 8
lea ecx, [ebp - 0x1048]
cmovae ecx, dword [ebp - 0x1048]
push ecx
mov ecx, eax
call fcn.0041a7f0
test eax, eax
jne 0x40a964
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.DoLua_failed__GLOBAL_VAR.LUA
jmp 0x40a9fc
lea eax, [ebp - 0x10b4]
push eax
call fcn.00474470
lea ecx, [ebp - 0x102c]
mov dword [esp], str..._resourceluaUninstScript.lua
push ecx
mov ecx, eax
call fcn.0040b900
push eax
lea ecx, [ebp - 0x1048]
call fcn.0040b811
lea ecx, [ebp - 0x102c]
call fcn.00405f7b
lea ecx, [ebp - 0x10b4]
call fcn.00405f7b
call fcn.00408b3b
cmp dword [ebp - 0x1034], 8
lea ecx, [ebp - 0x1048]
cmovae ecx, dword [ebp - 0x1048]
push ecx
mov ecx, eax
call fcn.0041a7f0
test eax, eax
jne 0x40aa37
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.DoResLua_failed__UninstScript.LUA
push 0x5fd6e0
call fcn.00594cd0
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 - 0x16d8]
jmp 0x40b41e
lea ecx, [ebp - 0x1048]
call fcn.00405f7b
call fcn.00408b3b
mov edx, str.global_app_id
mov esi, dword [eax]
mov ecx, esi
mov dword [ebp - 0x16d0], esi
call fcn.00431d10
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00431650
pop ecx
mov edi, eax
mov ecx, esi
push 0xfffffffffffffffe
pop edx
mov dword [ebp - 0x16cc], edi
call fcn.00431000
mov edx, str.global_uinstall_mutex_guid
call fcn.00431d10
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00431890
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16f8]
call fcn.00409c4a
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.00431000
mov edx, str.global_install_mutex_guid
call fcn.00431d10
push ebx
or edx, 0xffffffff
mov ecx, esi
call fcn.00431890
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16f4]
call fcn.00409c4a
push 0xfffffffffffffffe
pop edx
mov ecx, esi
call fcn.00431000
mov eax, dword [ebp - 0x16f4]
cmp dword [eax - 0xc], ebx
je 0x40aaf7
or dword [ebp - 4], 0xffffffff
push 0x5fcdf8
push eax
call fcn.00594dfb
pop ecx
pop ecx
test eax, eax
je 0x40aaf7
mov edi, ebx
jmp 0x40ab10
mov esi, str.GlobalA043B702_166A_4FB8_9733_E2BC4713F36F
push esi
call fcn.00594cd0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x16f4]
call fcn.00409b39
mov ecx, dword [ebp - 0x16f4]
mov edx, 0x5fcdf8
push edi
call fcn.00430390
mov esi, dword [ebp - 0x16d8]
mov edi, eax
mov dword [ebp - 0x16fc], edi
pop ecx
test edi, edi
je 0x40ab68
push ebx
push 0x5fdbf4
push 0x5fdbfc
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 0x40b3f7
push 1
push eax
call dword [sym.imp.USER32.dll_SwitchToThisWindow]
jmp 0x40b3f7
mov eax, dword [ebp - 0x16f8]
cmp dword [eax - 0xc], ebx
je 0x40ab8c
or dword [ebp - 4], 0xffffffff
push 0x5fcdf8
push eax
call fcn.00594dfb
pop ecx
pop ecx
test eax, eax
je 0x40ab8c
mov eax, ebx
jmp 0x40abab
mov edi, str.GlobalFE1A11F2_E01F_4421_90FD_2409A1BA5EFD
push edi
call fcn.00594cd0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x16f8]
call fcn.00409b39
mov eax, dword [ebp - 0x16cc]
mov ecx, dword [ebp - 0x16f8]
mov edx, str.CDlgUnInstall
push eax
call fcn.00430390
mov edi, eax
mov dword [ebp - 0x1700], edi
pop ecx
test edi, edi
je 0x40ac27
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.CreateAppInstance_return_true
push 0x5fd6e0
call fcn.00594cd0
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 0x40b3e6
mov edi, dword [ebp - 0x16e0]
lea ecx, [ebp - 0x16cc]
mov edx, edi
call fcn.0040926c
mov edx, dword [ebp - 0x16cc]
mov ecx, dword [ebp - 0x16d0]
call fcn.00431b00
mov ecx, dword [ebp - 0x16cc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16d0]
mov edx, str.global_install_path
call fcn.00431f90
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push 0x5fd6e0
call fcn.00594cd0
pop ecx
lea ecx, [ebp - 0x810]
push edi
lea eax, [ecx + eax*2]
push eax
call fcn.0040988e
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x810]
pop ecx
pop ecx
push eax
call edi
call fcn.00417397
call fcn.00417397
mov ecx, eax
call fcn.004173e4
mov ecx, dword [ebp - 0x16d0]
mov edx, str.global_uninstall_useui
call fcn.00431d10
mov ecx, dword [ebp - 0x16d0]
or edx, 0xffffffff
call fcn.00431810
mov ecx, dword [ebp - 0x16d0]
push 0xfffffffffffffffe
pop edx
mov dword [ebp - 0x16cc], eax
call fcn.00431000
mov edx, str.global_product_name
call fcn.00431d10
mov ecx, dword [ebp - 0x16d0]
or edx, 0xffffffff
push ebx
call fcn.00431890
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16f0]
call fcn.00409c4a
mov ecx, dword [ebp - 0x16d0]
push 0xfffffffffffffffe
pop edx
call fcn.00431000
mov dword [ebp - 4], 6
call fcn.00405c3d
push eax
lea ecx, [ebp - 0x16d4]
call fcn.004059ec
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x16d4]
push dword [ebp - 0x16f0]
push 0x5fdcf0
push eax
call fcn.004057e8
mov ecx, dword [ebp - 0x16d0]
add esp, 0xc
mov edx, str.global_uninstall_no_prompt
call fcn.00431d10
mov ecx, dword [ebp - 0x16d0]
or edx, 0xffffffff
call fcn.00431810
mov ecx, dword [ebp - 0x16d0]
push 0xfffffffffffffffe
pop edx
mov dword [ebp - 0x16d8], eax
call fcn.00431000
cmp dword [ebp - 0x16e8], 0
jne 0x40b216
cmp dword [ebp - 0x16cc], 0
jne 0x40aef3
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 0x5fdd18
push eax
call fcn.004057e8
mov edi, dword [ebp - 0x16e8]
add esp, 0xc
cmp dword [ebp - 0x16d8], 0
jne 0x40ae18
push 0x21
push dword [ebp - 0x16d4]
push edi
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 2
je 0x40aee6
call fcn.00417397
mov ecx, eax
call fcn.004174dc
mov ecx, dword [ebp - 0x16d0]
mov edx, str.global_uninstall_tips
call fcn.00431d10
mov ecx, dword [ebp - 0x16d0]
or edx, 0xffffffff
push ebx
call fcn.00431890
pop ecx
mov edx, eax
lea ecx, [ebp - 0x16cc]
call fcn.00409c4a
mov ecx, dword [ebp - 0x16d0]
push 0xfffffffffffffffe
pop edx
call fcn.00431000
mov eax, dword [ebp - 0x16cc]
cmp dword [eax - 0xc], ebx
je 0x40ae7f
or dword [ebp - 4], 0xffffffff
push 0x5fcdf8
push eax
call fcn.00594dfb
pop ecx
pop ecx
test eax, eax
jne 0x40ae99
push dword [ebp - 0x16f0]
lea eax, [ebp - 0x16cc]
push 0x5fdd60
push eax
call fcn.004057e8
add esp, 0xc
cmp dword [ebp - 0x16d8], 0
jne 0x40aeb7
push 0x40
push dword [ebp - 0x16d4]
push dword [ebp - 0x16cc]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00417397
mov ecx, eax
call fcn.0041755d
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
call fcn.00417397
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x16cc]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
lea ecx, [edi - 0x10]
call fcn.00405f2b
jmp 0x40b3c4
push ecx
mov eax, esp
mov dword [ebp - 0x16dc], ebx
push ecx
lea ecx, [ebp - 0x16dc]
mov dword [ebp - 0x16d8], ebx
mov dword [eax], 0x3e7
mov eax, esp
mov dword [eax], 0x5fdda8
call fcn.00409cf9
test al, al
jne 0x40b023
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.e:work_svndtlsetupdtluninstalldtluninstall.cpp
push str.LoadResource_failed._type_:_XML__id_:_LAYOUT.XMLxm_file:_s_r_n
push 0x5fd6e0
call fcn.00594cd0
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 edi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push 0x11e
push str.LoadResource_failed._type_:_XML__id_:_LAYOUT.XMLxm_line:_d_r_n
push 0x5fd6e0
call fcn.00594cd0
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 edi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5fd6e0
mov edi, eax
call fcn.00594cd0
pop ecx
push edi
push str.LoadResource_failed._type_:_XML__id_:_LAYOUT.XMLxm_err:_d_r_n
jmp 0x40b137
push dword [ebp - 0x16dc]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x16e8], eax
test eax, eax
jne 0x40b158
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.e:work_svndtlsetupdtluninstalldtluninstall.cpp
push str.LockResource_failed.xm_file:_s_r_n
push 0x5fd6e0
call fcn.00594cd0
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 edi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push 0x125
push str.LockResource_failed.xm_line:_d_r_n
push 0x5fd6e0
call fcn.00594cd0
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 edi
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5fd6e0
mov edi, eax
call fcn.00594cd0
pop ecx
push edi
push str.LockResource_failed.xm_err:_d_r_n
lea ecx, [ebp - 0x810]
lea ecx, [ecx + eax*2]
push ecx
call fcn.0040988e
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x40b1c5
push dword [ebp - 0x16d8]
push dword [0x62a280]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
test ecx, ecx
jne 0x40b1e3
mov eax, dword [0x5fd6e0]
mov dword [ebp - 0x810], eax
mov eax, dword [0x5fd6e4]
push 0x7f8
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push ebx
push eax
call fcn.0058d810
add esp, 0xc
push str.ResSize__0_r_n
push 0x5fd6e0
call fcn.00594cd0
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
cmp dword [ebp - 0x16dc], 0
je 0x40b3c4
push dword [ebp - 0x16dc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b3c4
push ecx
push ecx
mov eax, esp
push ecx
push dword [ebp - 0x16e8]
mov dword [eax], 0x5fcdf8
mov dword [eax + 4], ebx
call fcn.0047df10
add esp, 0x10
cmp dword [ebp - 0x16dc], 0
je 0x40b283
push dword [ebp - 0x16dc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40b283
lea eax, [ebp - 0x10b4]
push eax
call fcn.00474470
lea ecx, [ebp - 0x102c]
mov dword [esp], str...ResSkinUninst
push ecx
mov ecx, eax
call fcn.0040b900
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 edi, [ecx + 2]
mov dword [edx], ecx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40b25f
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
call fcn.0047ddb0
pop ecx
pop ecx
lea ecx, [ebp - 0x102c]
call fcn.00405f7b
push str.Shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x40b2af
push str.SetProcessDpiAwareness
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b2a8
push 2
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 3
call fcn.004f8300
pop ecx
lea ecx, [ebp - 0x16ec]
call fcn.0040b51f
push ecx
mov ecx, dword [eax]
call fcn.0045a4d0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x16e8]
test ecx, ecx
je 0x40b2e0
call fcn.0040f0ac
or dword [ebp - 4], 0xffffffff
call fcn.0045c040
mov ecx, eax
call fcn.0045c160
call fcn.0045d6c0
push ecx
mov ecx, eax
call fcn.0045d860
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], 0x5fcdf8
mov dword [eax + 4], ebx
call fcn.00480070
call fcn.00477c70
call fcn.0047e230
lea ecx, [ebp - 0x1708]
call fcn.0040b51f
mov ecx, dword [eax]
call fcn.0045a9a0
mov dword [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1704]
test ecx, ecx
je 0x40b367
call fcn.0040f0ac
or dword [ebp - 4], 0xffffffff
call fcn.0045c040
mov ecx, eax
call fcn.0045c2e0
call fcn.0045d6c0
mov ecx, eax
call fcn.0045da10
call fcn.00417397
call fcn.004f82b0
call dword [sym.imp.ole32.dll_CoUninitialize]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push ebx
push esi
call edi
cmp dword [ebp - 0x104c], 8
lea eax, [ebp - 0x1060]
push 4
cmovae eax, dword [ebp - 0x1060]
push ebx
push eax
call edi
lea ecx, [ebp - 0x16c8]
call fcn.0040646d
mov ecx, dword [ebp - 0x16d4]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov ecx, dword [ebp - 0x16f0]
lea ecx, [ecx - 0x10]
call fcn.00405f2b
mov edi, dword [ebp - 0x1700]
test edi, edi
je 0x40b402
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x16fc]
test edi, edi
je 0x40b402
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 - 0x16e0]
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.00456f70
mov ecx, dword [ebp - 0x16e4]
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.00539e65
leave
ret 0x10