Function at 0x401f5d
Capabilities:
Create process on windows
Delete file
Get common file path
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1d44
call fcn.0040ba70
mov eax, dword [0x4160c0]
xor eax, esp
mov dword [esp + 0x1d40], eax
push ebx
push esi
push edi
xor eax, eax
push 0x208
mov word [esp + 0x32c], ax
xor edi, edi
lea eax, [esp + 0x32e]
push edi
push eax
call fcn.004097f0
add esp, 0xc
lea eax, [esp + 0x328]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x401fbf
or eax, 0xffffffff
jmp 0x4026a9
xor eax, eax
lea ecx, [esp + 0x328]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
call fcn.00401000
mov esi, eax
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x54]
call fcn.00403026
push 8
pop ebx
lea ecx, [esp + 0x50]
test al, al
je 0x402013
lea eax, [esp + 0x328]
sub eax, ecx
push esi
sar eax, 1
push eax
mov eax, ecx
push eax
call fcn.00402825
jmp 0x402065
push edi
push esi
call fcn.00402c5e
test al, al
je 0x402065
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x50]
cmp edx, ebx
lea ecx, [esp + 0x50]
cmovae ecx, edi
test esi, esi
je 0x402050
lea eax, [esi + esi]
push eax
lea eax, [esp + 0x32c]
push eax
push ecx
call fcn.00403fa0
mov edx, dword [esp + 0x70]
mov edi, dword [esp + 0x5c]
add esp, 0xc
cmp edx, ebx
lea eax, [esp + 0x50]
cmovae eax, edi
xor ecx, ecx
mov dword [esp + 0x60], esi
mov word [eax + esi*2], cx
xor edi, edi
cmp dword [esp + 0x64], ebx
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x50]
cmovae ecx, dword [esp + 0x50]
mov esi, 0x4143b8
cmp word [ecx + eax*2 - 2], 0x5c
je 0x402095
mov ecx, esi
call fcn.00401000
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00402b3d
mov esi, str.TEMP
mov ecx, esi
call fcn.00401000
push eax
push esi
lea ecx, [esp + 0x58]
call fcn.00402b3d
lea ecx, [esp + 0x50]
call fcn.00401242
push str.TrendMicroLauncherConfig.ini
mov esi, 0x4143b8
push esi
lea edx, [esp + 0x58]
lea ecx, [esp + 0x14]
call fcn.00403141
pop ecx
mov edx, eax
lea ecx, [esp + 0x84]
call fcn.004031f9
pop ecx
push edi
push 1
lea ecx, [esp + 0x14]
call fcn.00402a1d
push str.TrendMicroLauncherPackage.zip
push esi
lea edx, [esp + 0x58]
lea ecx, [esp + 0x14]
call fcn.00403141
pop ecx
mov edx, eax
lea ecx, [esp + 0xb4]
call fcn.004031f9
pop ecx
push edi
push 1
lea ecx, [esp + 0x14]
call fcn.00402a1d
xor eax, eax
push 0x100e
mov word [esp + 0xd3c], ax
lea eax, [esp + 0xd3e]
push edi
push eax
call fcn.004097f0
add esp, 0xc
cmp dword [esp + 0xc4], ebx
lea ecx, [esp + 0xb0]
cmovae ecx, dword [esp + 0xb0]
cmp dword [esp + 0x94], ebx
push ecx
lea eax, [esp + 0x84]
cmovae eax, dword [esp + 0x84]
push eax
lea eax, [esp + 0xd40]
push str.config_path:__s__package_path:__s
push eax
call fcn.00403228
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x10
lea eax, [esp + 0xd38]
push eax
call ebx
lea edx, [esp + 0x80]
lea ecx, [esp + 0xb0]
call fcn.00401a69
test al, al
jne 0x4021b1
push str.fetch_package_failed...
call ebx
or esi, 0xffffffff
jmp 0x40267d
xor eax, eax
push 0x1fe
mov word [esp + 0x53c], ax
lea eax, [esp + 0x53e]
push edi
push eax
call fcn.004097f0
add esp, 0xc
cmp dword [esp + 0x94], 8
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push eax
push 0x100
lea eax, [esp + 0x540]
push eax
push 0x4143bc
push str.golbalMutexName
push str.instance
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
lea ecx, [esp + 0x538]
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], edi
mov word [esp + 0x68], ax
call fcn.00401000
mov esi, eax
lea eax, [esp + 0x538]
push eax
lea ecx, [esp + 0x6c]
call fcn.00403026
lea ecx, [esp + 0x68]
test al, al
je 0x40225c
lea eax, [esp + 0x538]
sub eax, ecx
push esi
sar eax, 1
push eax
mov eax, ecx
push eax
call fcn.00402825
jmp 0x4022b3
push edi
push esi
call fcn.00402c5e
test al, al
je 0x4022b3
mov edx, dword [esp + 0x7c]
mov edi, dword [esp + 0x68]
cmp edx, 8
lea ecx, [esp + 0x68]
cmovae ecx, edi
test esi, esi
je 0x40229d
lea eax, [esi + esi]
push eax
lea eax, [esp + 0x53c]
push eax
push ecx
call fcn.00403fa0
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x74]
add esp, 0xc
cmp edx, 8
lea eax, [esp + 0x68]
cmovae eax, edi
xor ecx, ecx
mov dword [esp + 0x78], esi
mov word [eax + esi*2], cx
xor edi, edi
cmp dword [esp + 0x78], 0
je 0x4022ce
lea ecx, [esp + 0x68]
call fcn.00401ea9
test al, al
je 0x4022ce
mov esi, edi
jmp 0x402671
xor eax, eax
push 0x1fe
mov word [esp + 0x12c], ax
lea eax, [esp + 0x12e]
push edi
push eax
call fcn.004097f0
add esp, 0xc
cmp dword [esp + 0x94], 8
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push eax
push 0x100
lea eax, [esp + 0x130]
push eax
push 0x4143bc
push str.localTempPath
push str.build
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
sub esp, 0x18
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
lea ecx, [esp + 0x140]
mov word [esi], ax
call fcn.00401000
mov edi, eax
lea eax, [esp + 0x140]
push eax
mov ecx, esi
call fcn.00403026
test al, al
je 0x402380
cmp dword [esi + 0x14], 8
jb 0x402367
mov ecx, dword [esi]
jmp 0x402369
mov ecx, esi
lea eax, [esp + 0x140]
sub eax, ecx
push edi
sar eax, 1
push eax
push esi
mov ecx, esi
call fcn.00402825
jmp 0x4023c4
push 0
push edi
mov ecx, esi
call fcn.00402c5e
test al, al
je 0x4023c4
cmp dword [esi + 0x14], 8
jb 0x402398
mov ecx, dword [esi]
jmp 0x40239a
mov ecx, esi
test edi, edi
je 0x4023b3
lea eax, [edi + edi]
push eax
lea eax, [esp + 0x144]
push eax
push ecx
call fcn.00403fa0
add esp, 0xc
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edi
jb 0x4023be
mov esi, dword [esi]
xor eax, eax
mov word [esi + edi*2], ax
xor edx, edx
lea ecx, [esp + 0xe0]
call fcn.00401379
add esp, 0x18
lea edx, [esp + 0xc8]
push str.PackageLauncher
push 0x4143b8
lea ecx, [esp + 0x30]
call fcn.00403141
pop ecx
mov edx, eax
lea ecx, [esp + 0x10]
call fcn.004031f9
mov esi, eax
lea eax, [esp + 0xcc]
xor edi, edi
pop ecx
cmp eax, esi
je 0x402422
push edi
push 1
mov ecx, eax
call fcn.00402a1d
push esi
lea ecx, [esp + 0xcc]
call fcn.004027d9
push edi
push 1
lea ecx, [esp + 0x14]
call fcn.00402a1d
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.00402a1d
lea ecx, [esp + 0xc8]
call fcn.00401242
push str.TrendMicroLauncher.exe
push 0x4143b8
lea edx, [esp + 0xd0]
lea ecx, [esp + 0x30]
call fcn.00403141
pop ecx
mov edx, eax
lea ecx, [esp + 0x9c]
call fcn.004031f9
pop ecx
push edi
push 1
lea ecx, [esp + 0x30]
call fcn.00402a1d
cmp dword [esp + 0xac], 8
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x98]
cmovae eax, dword [esp + 0x98]
push eax
call esi
cmp dword [esp + 0xac], 8
lea eax, [esp + 0x98]
cmovae eax, dword [esp + 0x98]
push eax
call ebx
lea edx, [esp + 0xc8]
lea ecx, [esp + 0xb0]
call fcn.00401cc3
test eax, eax
jns 0x4024d7
push str.unzip_to_folder_failed...
jmp 0x40263e
cmp dword [esp + 0xc4], 8
lea eax, [esp + 0xb0]
cmovae eax, dword [esp + 0xb0]
push eax
call esi
xor eax, eax
push 0x1fe
mov word [esp + 0x73c], ax
lea eax, [esp + 0x73e]
push edi
push eax
call fcn.004097f0
add esp, 0xc
cmp dword [esp + 0x94], 8
lea eax, [esp + 0x80]
cmovae eax, dword [esp + 0x80]
push eax
push 0x100
lea eax, [esp + 0x740]
push eax
push 0x4143bc
push str.param
push str.build
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
push 0x3fe
mov word [esp + 0x93c], ax
lea eax, [esp + 0x93e]
push edi
push eax
call fcn.004097f0
add esp, 0xc
cmp dword [esp + 0xac], 8
lea ecx, [esp + 0x738]
push ecx
lea eax, [esp + 0x9c]
cmovae eax, dword [esp + 0x9c]
push eax
lea eax, [esp + 0x940]
push str.__s___s
push eax
call fcn.00403245
add esp, 0x10
lea eax, [esp + 0x938]
push eax
call ebx
mov eax, dword [0x417e48]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4025bc
push eax
call esi
push 0x44
pop edi
push edi
lea eax, [esp + 0xe4]
push 0
push eax
call fcn.004097f0
add esp, 0xc
mov dword [esp + 0xe0], edi
push 5
pop eax
mov word [esp + 0x110], ax
xor eax, eax
lea edi, [esp + 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x40]
push eax
xor edi, edi
lea eax, [esp + 0xe4]
push eax
push edi
push edi
push 0x200
push edi
push edi
push edi
lea eax, [esp + 0x958]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402645
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0xd3c]
push str.CreateProcessW_failed_with_error__d
push eax
call fcn.00403228
add esp, 0xc
lea eax, [esp + 0xd38]
push eax
call ebx
or esi, 0xffffffff
jmp 0x402653
push dword [esp + 0x40]
call esi
push dword [esp + 0x44]
call esi
mov esi, edi
push edi
push 1
lea ecx, [esp + 0xa0]
call fcn.00402a1d
push edi
push 1
lea ecx, [esp + 0xd0]
call fcn.00402a1d
push edi
push 1
lea ecx, [esp + 0x70]
call fcn.00402a1d
push edi
push 1
lea ecx, [esp + 0xb8]
call fcn.00402a1d
push edi
push 1
lea ecx, [esp + 0x88]
call fcn.00402a1d
push edi
push 1
lea ecx, [esp + 0x58]
call fcn.00402a1d
mov eax, esi
mov ecx, dword [esp + 0x1d4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040342f
mov esp, ebp
pop ebp
ret 0x10