Function at 0x401fd9
Capabilities:
Create process on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x195c
call fcn.004144f0
mov eax, dword [0x41d004]
xor eax, esp
mov dword [esp + 0x1958], eax
push ebx
push esi
push edi
mov ecx, str._nodel
call fcn.00401f3c
mov ecx, str._ghost
mov dword [esp + 0x10], eax
call fcn.00401f3c
mov ecx, str._stop
mov dword [esp + 0x18], eax
call fcn.00401f3c
mov ecx, str._service
mov dword [esp + 0x24], eax
call fcn.00401f3c
mov esi, eax
mov ecx, str._norunonce
mov dword [esp + 0x1c], esi
call fcn.00401f3c
mov ecx, str._app
mov dword [esp + 0x14], eax
call fcn.00401f3c
mov ecx, str._params
mov dword [esp + 0x20], eax
call fcn.00401f3c
push 0x80
mov dword [esp + 0x10], eax
lea eax, [esp + 0x84]
push 0
push eax
call fcn.004046f0
add esp, 0xc
lea eax, [esp + 0x1140]
mov edi, 0x820
xor ebx, ebx
inc ebx
push edi
push 0
push eax
call fcn.004046f0
add esp, 0xc
lea eax, [esp + 0x100]
push edi
push 0
push eax
call fcn.004046f0
add esp, 0xc
lea eax, [esp + 0x920]
push edi
push 0
push eax
call fcn.004046f0
add esp, 0xc
lea eax, [esp + 0x38]
push 0x44
push 0
push eax
call fcn.004046f0
xor eax, eax
lea edi, [esp + 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x41ac94
mov ecx, edi
call fcn.00401f3c
test eax, eax
je 0x402123
push str._unattid
push 0x40
pop esi
lea eax, [esp + 0x84]
push esi
push eax
call fcn.00405780
add esp, 0xc
lea eax, [esp + 0x80]
push esi
push eax
call fcn.004059db
sub esi, eax
lea edx, [esp + 0x88]
push esi
mov ecx, edi
lea edx, [edx + eax*2]
call fcn.00401f75
mov esi, dword [esp + 0x28]
add esp, 0xc
mov edi, dword [esp + 0x20]
test edi, edi
je 0x40214a
mov ecx, 0x7d00
call fcn.00401a4c
test eax, eax
je 0x40214a
push ecx
call fcn.004037bd
pop ecx
call fcn.00401aa1
call fcn.00401a1f
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40220c
push ebx
push 0
mov edx, str.eula.txt
mov ecx, 0x2717
call fcn.00401ace
pop ecx
pop ecx
mov edx, 0x41aa64
call fcn.00401d3e
cmp dword [esp + 0x10], 0
je 0x402185
mov edx, str._nodel
call fcn.00401d3e
cmp dword [esp + 0x14], 0
je 0x402196
mov edx, str._norunonce
call fcn.00401d3e
cmp dword [esp + 0x18], 0
je 0x4021be
mov edx, str._ghost
call fcn.00401d3e
cmp word [esp + 0x80], 0
je 0x4021be
lea edx, [esp + 0x80]
call fcn.00401d3e
push 0
push 0
mov edx, str.params.txt
mov ecx, 0x2710
call fcn.00401ace
xor ecx, ecx
call fcn.00401e4f
xor ecx, ecx
call fcn.00401ee7
mov edx, 0x2712
push ebx
push str.script
lea ecx, [edx + 1]
call fcn.00401ace
mov edx, 0x2714
push ebx
push str.script
lea ecx, [edx + 1]
call fcn.00401ace
mov eax, dword [esp + 0x24]
add esp, 0x18
test edi, edi
jne 0x402438
test eax, eax
jne 0x402438
mov edi, 0x41ad18
mov ecx, edi
call fcn.00401f3c
lea edx, [esp + 0x100]
test eax, eax
je 0x402263
push 0x410
mov ecx, edi
call fcn.00401f75
pop ecx
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, 0x7d00
call fcn.00401a4c
test eax, eax
jne 0x402291
push str.Failed_to_locate_application_resource.
jmp 0x40227c
push ecx
push ecx
lea ecx, [esp + 0x1148]
call fcn.0040188f
pop ecx
pop ecx
test eax, eax
je 0x40224e
push str.Failed_to_create_applet_folder.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040194e
pop ecx
pop ecx
xor edi, edi
jmp 0x4023e3
push ecx
call fcn.004037bd
pop ecx
test eax, eax
jne 0x4022a3
push str.Failed_to_decompress_application_files.
jmp 0x40227c
call fcn.00401a1f
test eax, eax
jne 0x4022b3
push str.Failed_to_copy_service_binary.
jmp 0x40227c
call fcn.00401aa1
push ebx
xor edi, edi
mov edx, str.eula.txt
push edi
mov ecx, 0x2717
call fcn.00401ace
pop ecx
pop ecx
test esi, esi
jne 0x402334
mov edx, 0x41aa64
call fcn.00401d3e
cmp dword [esp + 0x10], edi
je 0x4022eb
mov edx, str._nodel
call fcn.00401d3e
cmp dword [esp + 0x14], edi
je 0x4022fb
mov edx, str._norunonce
call fcn.00401d3e
cmp dword [esp + 0x18], edi
je 0x402321
mov edx, str._ghost
call fcn.00401d3e
cmp word [esp + 0x80], di
je 0x402321
lea edx, [esp + 0x80]
call fcn.00401d3e
push edi
push edi
mov edx, str.params.txt
mov ecx, 0x2710
call fcn.00401ace
pop ecx
pop ecx
mov ecx, esi
call fcn.00401e4f
mov ecx, esi
call fcn.00401ee7
test esi, esi
jne 0x40236c
mov edx, 0x2712
mov esi, str.script
push ebx
push esi
lea ecx, [edx + 1]
call fcn.00401ace
mov edx, 0x2714
push ebx
push esi
lea ecx, [edx + 1]
call fcn.00401ace
add esp, 0x10
mov ebx, edi
cmp dword [esp + 0x24], ebx
jne 0x4023e3
push str.LMI_Rescue.exe
lea eax, [esp + 0x104]
push eax
push str.__s_s_
lea eax, [esp + 0x92c]
push 0x410
push eax
call fcn.004018f4
add esp, 0x14
mov dword [esp + 0x38], 0x44
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x108]
push eax
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0x940]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4023e3
push str.Failed_to_start_client_application.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040194e
pop ecx
pop ecx
push 2
pop ebx
call fcn.00401aa1
cmp dword [esp + 0x2c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4023ff
push dword [esp + 0x2c]
call esi
mov dword [esp + 0x2c], edi
cmp dword [esp + 0x28], 0
je 0x402410
push dword [esp + 0x28]
call esi
mov dword [esp + 0x28], edi
push 0x410
lea eax, [esp + 0x924]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402434
lea ecx, [esp + 0x920]
call fcn.00401229
mov eax, ebx
jmp 0x40243a
xor eax, eax
mov ecx, dword [esp + 0x1964]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040381e
mov esp, ebp
pop ebp
ret