Function at 0x409470
Capabilities:
Accept command line arguments
Copy file
Create directory
Create process on windows
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439b17
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1264
call fcn.00420760
mov eax, dword [0x4510e0]
xor eax, esp
mov dword [esp + 0x1260], eax
push ebx
push esi
push edi
mov eax, dword [0x4510e0]
xor eax, esp
push eax
lea eax, [esp + 0x1278]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x4094e1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push ebx
push edi
call fcn.0040ba93
test eax, eax
jne 0x4094f3
push 0x449d34
jmp 0x4094e6
push 0x449d5c
call fcn.0041d350
mov ebx, 1
add esp, 4
cmp dword [ebp + 8], 1
jle 0x4098ce
push 0x449d94
push dword [esi + 4]
call fcn.0041bd50
add esp, 8
test eax, eax
je 0x409908
push 0x449d98
push dword [esi + 4]
call fcn.0041bd50
add esp, 8
test eax, eax
jne 0x40964d
push str.GlobalTouchEn_nxWeb_Setup_Mutex
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x200
mov dword [esp + 0x18], eax
lea eax, [esp + 0x60]
push 0
push eax
call fcn.0041d590
add esp, 0xc
lea eax, [esp + 0x5c]
push str.ZERODATA_IPCSIG
push 0x10
push eax
call fcn.0041c0d9
add esp, 0xc
lea eax, [esp + 0x5c]
push 0
push 0xffffffffffffffff
push 0
push 0
push 0x200
push eax
push str.ZERIDATA_MADIPCSLOT__FLOGMO_KSIL_TEWEBSE
mov dword [esp + 0x98], 1
call fcn.0042f660
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call edi
xor esi, esi
lea ebx, [ebx]
push ecx
mov ecx, esp
push str.TENXW_Guard
call fcn.00401e40
mov ecx, 1
call fcn.00408840
add esp, 4
test eax, eax
jne 0x4095c8
push 0x32
call edi
inc esi
cmp esi, 0xa
jl 0x4095a0
push ecx
mov ecx, esp
push str.GlobalTouchEn_nxWeb_Policy_32
call fcn.00401e40
call fcn.00409410
mov ecx, esp
push str.GlobalTouchEn_nxWeb_Policy_64
call fcn.00401e40
call fcn.00409410
mov ecx, esp
push str._TouchEn_nxWeb_32
call fcn.00401e40
call fcn.00409410
mov ecx, esp
push str._TouchEn_nxWeb_64
call fcn.00401e40
call fcn.00409410
add esp, 4
mov edx, 0xa
mov ecx, 0x45add4
call fcn.00408950
mov edx, 4
mov ecx, 0x45adc0
call fcn.00408950
mov esi, dword [esp + 0x14]
test esi, esi
je 0x409908
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409908
push 0x449d9c
push dword [esi + 4]
call fcn.0041bd50
add esp, 8
test eax, eax
jne 0x409707
call fcn.00435aa0
test eax, eax
je 0x409908
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
call fcn.00408c00
push 0x447ba4
push eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x128c], 0
call fcn.00409930
add esp, 0xc
lea ecx, [esp + 0x18]
mov byte [esp + 0x1280], 2
call fcn.004011b0
push str.TENXWGuard64_123.dll
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00409930
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004011b0
test esi, esi
je 0x4096f9
push str.SetHook
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4096f9
push 0
push 0
call eax
add esp, 8
lea ecx, [esp + 0x14]
call fcn.004011b0
jmp 0x409908
push str.uninstall
push dword [esi + 4]
call fcn.0041bd50
add esp, 8
test eax, eax
jne 0x4098b3
push 0xffe
push eax
mov word [esp + 0x274], ax
lea eax, [esp + 0x276]
push eax
call fcn.0041d590
add esp, 0xc
lea eax, [esp + 0x26c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.00408c90
mov dword [esp + 0x1280], 3
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
call fcn.00402300
push str.TENXWGuard
mov byte [esp + 0x1284], 4
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.004073f0
add esp, 0x10
push 0
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x447ba4
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00409930
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1284], 5
call fcn.00402240
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1280], 4
call fcn.004011b0
push str.TouchEn_nxWeb_Installer.exe
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.004073f0
mov esi, dword [esp + 0x28]
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x3c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0041d590
add esp, 0xc
mov dword [esp + 0x20], 0x3c
mov dword [esp + 0x24], 0x400
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], str.runas
mov dword [esp + 0x3c], 0
call fcn.0040bf54
mov eax, dword [eax + 8]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], str._UNINSTALLTRUE
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x409894
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x40989f
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00409060
lea ecx, [esp + 0x18]
call fcn.004011b0
lea ecx, [esp + 0x14]
call fcn.004011b0
jmp 0x409908
push str._UNINSTALLTRUE
push dword [esi + 4]
call fcn.0041bd50
add esp, 8
test eax, eax
jne 0x409908
call fcn.00409060
jmp 0x409908
lea eax, [esp + 0x25c]
push eax
mov dword [esp + 0x260], str.TENXW_Guard
mov dword [esp + 0x264], 0x408510
mov dword [esp + 0x268], 0
mov dword [esp + 0x26c], 0
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
mov eax, ebx
mov ecx, dword [esp + 0x1278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1260]
xor ecx, esp
call fcn.0041bcb9
mov esp, ebp
pop ebp
ret