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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x195c
call fcn.00413ed0
mov eax, dword [0x41c004]
xor eax, esp
mov dword [esp + 0x1958], eax
push ebx
push esi
push edi
mov ecx, str._nodel
call fcn.00401fde
mov ecx, str._ghost
mov dword [esp + 0x14], eax
call fcn.00401fde
mov ecx, str._stop
mov dword [esp + 0x1c], eax
call fcn.00401fde
mov ecx, str._service
mov dword [esp + 0x24], eax
call fcn.00401fde
mov esi, eax
mov ecx, str._norunonce
mov dword [esp + 0x20], esi
call fcn.00401fde
mov ecx, str._app
mov dword [esp + 0x18], eax
call fcn.00401fde
mov ecx, str._params
mov dword [esp + 0x10], eax
call fcn.00401fde
push 0x80
mov dword [esp + 0x10], eax
lea eax, [esp + 0x84]
push 0
push eax
call fcn.00404720
add esp, 0xc
lea eax, [esp + 0x1140]
mov edi, 0x820
xor ebx, ebx
inc ebx
push edi
push 0
push eax
call fcn.00404720
add esp, 0xc
lea eax, [esp + 0x100]
push edi
push 0
push eax
call fcn.00404720
add esp, 0xc
lea eax, [esp + 0x920]
push edi
xor edi, edi
push edi
push eax
call fcn.00404720
add esp, 0xc
lea eax, [esp + 0x38]
push 0x44
push edi
push eax
call fcn.00404720
mov dword [esp + 0x34], edi
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x41a954
mov ecx, edi
call fcn.00401fde
test eax, eax
je 0x4021c8
push str._unattid
push 0x40
pop esi
lea eax, [esp + 0x84]
push esi
push eax
call fcn.004051f7
add esp, 0xc
lea eax, [esp + 0x80]
push esi
push eax
call fcn.00405452
sub esi, eax
lea edx, [esp + 0x88]
push esi
mov ecx, edi
lea edx, [edx + eax*2]
call fcn.00402017
mov esi, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
je 0x402207
push 0xa
push 0x7d00
push 0
call edi
mov dword [0x41d2d0], eax
test eax, eax
je 0x4021f0
call fcn.00401a9a
jmp 0x4021f2
xor eax, eax
test eax, eax
je 0x402207
push ecx
call fcn.00403872
pop ecx
call fcn.00401ade
call fcn.00401a6d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4022c9
push ebx
push 0
mov edx, str.eula.txt
mov ecx, 0x2717
call fcn.00401b0b
pop ecx
pop ecx
mov edx, 0x41a720
call fcn.00401daf
cmp dword [esp + 0x14], 0
je 0x402242
mov edx, str._nodel
call fcn.00401daf
cmp dword [esp + 0x18], 0
je 0x402253
mov edx, str._norunonce
call fcn.00401daf
cmp dword [esp + 0x1c], 0
je 0x40227b
mov edx, str._ghost
call fcn.00401daf
cmp word [esp + 0x80], 0
je 0x40227b
lea edx, [esp + 0x80]
call fcn.00401daf
push 0
push 0
mov edx, str.params.txt
mov ecx, 0x2710
call fcn.00401b0b
xor ecx, ecx
call fcn.00401ec2
xor ecx, ecx
call fcn.00401f73
mov edx, 0x2712
push ebx
push str.script
lea ecx, [edx + 1]
call fcn.00401b0b
mov edx, 0x2714
push ebx
push str.script
lea ecx, [edx + 1]
call fcn.00401b0b
mov eax, dword [esp + 0x24]
add esp, 0x18
cmp dword [esp + 0x10], 0
jne 0x402513
test eax, eax
jne 0x402513
mov ecx, 0x41a9d8
call fcn.00401fde
lea edx, [esp + 0x100]
test eax, eax
je 0x40232c
push 0x410
mov ecx, 0x41a9d8
call fcn.00402017
pop ecx
lea eax, [esp + 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0xa
push 0x7d00
push 0
call edi
mov dword [0x41d2d0], eax
test eax, eax
je 0x402358
call fcn.00401a9a
xor edi, edi
jmp 0x40235c
push ecx
push ecx
lea ecx, [esp + 0x1148]
call fcn.004018ce
pop ecx
pop ecx
test eax, eax
je 0x40230f
push str.Failed_to_create_applet_folder.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040199a
pop ecx
pop ecx
jmp 0x4024bb
xor edi, edi
mov eax, edi
test eax, eax
jne 0x402367
push str.Failed_to_locate_application_resource.
jmp 0x402345
push ecx
call fcn.00403872
pop ecx
test eax, eax
jne 0x402379
push str.Failed_to_decompress_application_files.
jmp 0x402345
call fcn.00401a6d
test eax, eax
jne 0x402389
push str.Failed_to_copy_service_binary.
jmp 0x402345
call fcn.00401ade
push ebx
push edi
mov edx, str.eula.txt
mov ecx, 0x2717
call fcn.00401b0b
pop ecx
pop ecx
test esi, esi
jne 0x40240b
mov edx, 0x41a720
call fcn.00401daf
cmp dword [esp + 0x14], esi
je 0x4023bf
mov edx, str._nodel
call fcn.00401daf
cmp dword [esp + 0x18], 0
je 0x4023d0
mov edx, str._norunonce
call fcn.00401daf
cmp dword [esp + 0x1c], 0
je 0x4023f8
mov edx, str._ghost
call fcn.00401daf
cmp word [esp + 0x80], 0
je 0x4023f8
lea edx, [esp + 0x80]
call fcn.00401daf
push edi
push edi
mov edx, str.params.txt
mov ecx, 0x2710
call fcn.00401b0b
pop ecx
pop ecx
mov ecx, esi
call fcn.00401ec2
mov ecx, esi
call fcn.00401f73
test esi, esi
jne 0x402443
mov edx, 0x2712
mov esi, str.script
push ebx
push esi
lea ecx, [edx + 1]
call fcn.00401b0b
mov edx, 0x2714
push ebx
push esi
lea ecx, [edx + 1]
call fcn.00401b0b
add esp, 0x10
cmp dword [esp + 0x24], 0
mov ebx, edi
jne 0x4024bb
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.00401940
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 0x4024bb
push str.Failed_to_start_client_application.
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040199a
pop ecx
pop ecx
push 2
pop ebx
call fcn.00401ade
cmp dword [esp + 0x2c], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4024d8
push dword [esp + 0x2c]
call esi
and dword [esp + 0x2c], 0
cmp dword [esp + 0x28], 0
je 0x4024ea
push dword [esp + 0x28]
call esi
and dword [esp + 0x28], 0
push 0x410
lea eax, [esp + 0x924]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40250f
lea ecx, [esp + 0x920]
call fcn.00401265
mov eax, ebx
jmp 0x402515
xor eax, eax
mov ecx, dword [esp + 0x1964]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004038d5
mov esp, ebp
pop ebp
ret