Function at 0x421e61
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x46a004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp + 0x10]
push ebx
mov dword [ebp - 0x260], eax
xor ebx, ebx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x1c]
push 0x208
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f8e0
or dword [ebp - 0x22c], 0xffffffff
lea eax, [ebp - 0x2b8]
push 0x44
push ebx
push eax
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x218], ebx
call fcn.0042f8e0
xor eax, eax
mov dword [ebp - 0x224], ebx
lea edi, [ebp - 0x25c]
add esp, 0x18
stosd dword es:[edi], eax
lea ecx, [ebp - 0x220]
push ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x274]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 8]
push dword [eax + 0x24]
push dword [eax + 0x14]
call fcn.0041a390
mov ebx, eax
test ebx, ebx
jns 0x421f55
mov eax, dword [esi + 8]
push dword [eax]
push 0x45b1b0
push ebx
call fcn.00440237
add esp, 0xc
jmp 0x4225fe
mov edi, dword [ebp - 0x230]
push 1
push dword [ebp - 0x220]
push str.WixBundleExecutePackageCacheFolder
push edi
call fcn.004082c0
mov eax, dword [esi + 0x10]
push 1
cdq
push edx
push eax
push str.WixBundleExecutePackageAction
push edi
call fcn.0040827b
lea eax, [ebp - 0x210]
push eax
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x7c]
mov eax, dword [eax]
push dword [eax + 0x18]
push dword [ebp - 0x220]
call fcn.00402d58
mov ebx, eax
test ebx, ebx
jns 0x421fb6
push 0x45b1dc
push ebx
call fcn.00440237
pop ecx
pop ecx
jmp 0x4225fe
mov ecx, dword [esi + 0x10]
mov eax, ecx
sub eax, 1
je 0x421ff3
sub eax, 1
je 0x421fe8
sub eax, 3
je 0x421fdd
push ecx
mov eax, 0x80070057
push 0x45b200
mov ebx, eax
push eax
jmp 0x421f48
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x98]
jmp 0x421ffc
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x94]
jmp 0x421ffc
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x9c]
xor ecx, ecx
test eax, eax
je 0x422007
cmp word [eax], cx
jne 0x42200c
mov eax, 0x44b534
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00402195
mov ebx, eax
test ebx, ebx
jns 0x422027
push 0x45b220
jmp 0x421fa9
mov eax, dword [esi + 8]
xor ebx, ebx
mov dword [ebp - 0x244], ebx
cmp dword [eax + 0xc4], ebx
jbe 0x42213f
mov edx, ebx
mov dword [ebp - 0x248], ebx
mov edi, dword [eax + 0xc0]
lea eax, [ebp - 0x240]
add edi, edx
mov dword [ebp - 0x240], ebx
push eax
push dword [edi + 0xc]
push dword [ebp - 0x230]
call fcn.004098f9
mov ebx, eax
test ebx, ebx
js 0x42218b
cmp dword [ebp - 0x240], 0
je 0x42210c
push 0
push 0x44b770
lea eax, [ebp - 0x21c]
push eax
call fcn.00401ee5
mov ebx, eax
test ebx, ebx
js 0x422181
mov ecx, dword [esi + 0x10]
mov eax, ecx
sub eax, 1
je 0x4220f5
sub eax, 1
je 0x4220d5
sub eax, 3
jne 0x421fca
push eax
push dword [edi + 8]
lea eax, [ebp - 0x21c]
push eax
call fcn.00401ee5
mov ebx, eax
test ebx, ebx
jns 0x42210c
push 0x45b318
jmp 0x421fa9
push 0
push dword [edi]
lea eax, [ebp - 0x21c]
push eax
call fcn.00401ee5
mov ebx, eax
test ebx, ebx
jns 0x42210c
push 0x45b2b0
jmp 0x421fa9
push 0
push dword [edi + 4]
lea eax, [ebp - 0x21c]
push eax
call fcn.00401ee5
mov ebx, eax
test ebx, ebx
js 0x422177
mov ecx, dword [ebp - 0x244]
xor ebx, ebx
mov eax, dword [esi + 8]
inc ecx
mov edx, dword [ebp - 0x248]
add edx, 0x10
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x248], edx
cmp ecx, dword [eax + 0xc4]
jb 0x422046
mov edi, dword [ebp - 0x230]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x42220c
push ebx
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x21c]
push edi
call fcn.004072f8
mov ebx, eax
test ebx, ebx
jns 0x422195
push str.Failed_to_format_argument_string.
jmp 0x421fa9
push 0x45b2e4
jmp 0x421fa9
push 0x45b284
jmp 0x421fa9
push 0x45b244
jmp 0x421fa9
push dword [ebp - 0x23c]
lea eax, [ebp - 0x214]
push dword [ebp - 0x210]
push str.__ls___s
push eax
call fcn.00401f55
mov ebx, eax
add esp, 0x10
test ebx, ebx
jns 0x4221c5
push str.Failed_to_create_executable_command.
jmp 0x421fa9
push 0
lea eax, [ebp - 0x228]
push eax
push dword [ebp - 0x21c]
push edi
call fcn.00407312
mov ebx, eax
test ebx, ebx
jns 0x4221ea
push str.Failed_to_format_obfuscated_argument_string.
jmp 0x421fa9
push dword [ebp - 0x228]
lea eax, [ebp - 0x218]
push dword [ebp - 0x210]
push str.__ls___s
push eax
call fcn.00401f13
add esp, 0x10
jmp 0x422243
push dword [ebp - 0x210]
mov edi, str.__ls_
lea eax, [ebp - 0x214]
push edi
push eax
call fcn.00401f13
mov ebx, eax
add esp, 0xc
test ebx, ebx
js 0x4221bb
push dword [ebp - 0x210]
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00401f13
add esp, 0xc
mov ebx, eax
test ebx, ebx
jns 0x422253
push str.Failed_to_create_obfuscated_executable_command.
jmp 0x421fa9
mov eax, dword [esi + 8]
xor edi, edi
cmp dword [eax + 0xb4], edi
je 0x422341
cmp dword [esi + 0x14], edi
je 0x4222db
cmp dword [eax + 0xb0], 1
jne 0x4222db
push dword [esi + 0x14]
lea eax, [ebp - 0x214]
push str.burn.ignoredependencies
push dword [ebp - 0x214]
push 0x45b348
push eax
call fcn.00401f55
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x4222ac
push 0x45b368
push ebx
call fcn.00440237
pop ecx
pop ecx
jmp 0x422600
push dword [esi + 0x14]
lea eax, [ebp - 0x218]
push str.burn.ignoredependencies
push dword [ebp - 0x218]
push 0x45b348
push eax
call fcn.00401f13
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x4222db
push 0x45b3b8
jmp 0x42229f
cmp dword [esi + 0x18], edi
je 0x422341
push dword [esi + 0x18]
lea eax, [ebp - 0x214]
push str.burn.ancestors
push dword [ebp - 0x214]
push 0x45b348
push eax
call fcn.00401f55
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x42230f
push 0x45b40c
jmp 0x42229f
push dword [esi + 0x18]
lea eax, [ebp - 0x218]
push str.burn.ancestors
push dword [ebp - 0x218]
push 0x45b348
push eax
call fcn.00401f13
mov ebx, eax
add esp, 0x14
test ebx, ebx
jns 0x422341
push 0x45b448
jmp 0x42229f
mov eax, dword [esi + 8]
cmp dword [eax + 0xb0], 1
jne 0x42238b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x22c]
push eax
push dword [ebp - 0x210]
call fcn.00416b13
mov ebx, eax
test ebx, ebx
jns 0x42238b
push str.burn.filehandle.self
push str.Failed_to_append__ls
push ebx
call fcn.00440237
add esp, 0xc
jmp 0x422600
push dword [ebp - 0x218]
push dword [ebp - 0x210]
push dword [esi + 0x10]
call fcn.00413d05
push eax
mov eax, dword [esi + 8]
push dword [eax]
push dword [ebp - 0x260]
call fcn.00414484
push eax
push 0x2000012d
push 2
call fcn.00405602
add esp, 0x1c
cmp dword [esi + 0xc], edi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jne 0x42245e
mov eax, dword [esi + 8]
mov eax, dword [eax + 0xb0]
cmp eax, 1
jne 0x42241b
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call fcn.0042cc91
mov ebx, eax
test ebx, ebx
jns 0x422574
push dword [ebp - 0x210]
push 0x45b490
jmp 0x421f47
cmp eax, 2
jne 0x42245e
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call fcn.0042d43e
mov ebx, eax
test ebx, ebx
jns 0x422574
push dword [ebp - 0x210]
push 0x45b4c0
jmp 0x421f47
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x422482
push dword [ebp - 0x220]
call edi
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x2b8], 0x44
push eax
lea eax, [ebp - 0x2b8]
push eax
xor eax, eax
push eax
push eax
push 0x8000000
push 1
push eax
push eax
push dword [ebp - 0x214]
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4224fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x4224d4
movzx ebx, bx
or ebx, 0x80070000
test ebx, ebx
js 0x4224db
mov ebx, 0x80004005
push ebx
push 0x222
push 0x45b110
call fcn.00403821
push dword [ebp - 0x210]
push str.Failed_to_CreateProcess_on_path:__ls
jmp 0x4225e3
cmp dword [esi + 0xc], 0
je 0x422517
push 0x1388
push dword [ebp - 0x25c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
jmp 0x4225ec
push dword [ebp - 0x234]
xor ebx, ebx
mov dword [ebp - 0x274], 2
lea eax, [ebp - 0x274]
mov dword [ebp - 0x26c], 0x32
inc ebx
push eax
mov dword [ebp - 0x270], ebx
call dword [ebp - 0x238]
cmp eax, ebx
je 0x42254f
test eax, eax
jne 0x4225ab
lea eax, [ebp - 0x224]
push eax
push 0x1f4
push dword [ebp - 0x25c]
call fcn.00440a28
mov ebx, eax
cmp ebx, 0x80070102
je 0x422517
test ebx, ebx
js 0x4225d8
push dword [ebp - 0x264]
push dword [ebp - 0x224]
push dword [esi + 8]
call fcn.00421921
mov ebx, eax
test ebx, ebx
jns 0x4225ec
push ebx
push 0x23d
push 0x45b110
call fcn.00403821
push dword [ebp - 0x224]
push 0x45b54c
jmp 0x4225e3
xor ebx, ebx
cmp eax, 2
setne bl
add ebx, 0x80070642
push ebx
push 0x232
push 0x45b110
call fcn.00403821
push 0x45b4e4
push ebx
call fcn.00440237
pop ecx
pop ecx
jmp 0x4225ec
push dword [ebp - 0x210]
push 0x45b51c
push ebx
call fcn.00440237
add esp, 0xc
cmp dword [ebp - 0x24c], 0
je 0x4225fe
lea eax, [ebp - 0x20c]
push eax
call edi
xor edi, edi
push dword [ebp - 0x21c]
call fcn.00402782
push dword [ebp - 0x23c]
call fcn.00402782
cmp dword [ebp - 0x228], 0
je 0x42262a
push dword [ebp - 0x228]
call fcn.00445636
cmp dword [ebp - 0x220], 0
je 0x42263e
push dword [ebp - 0x220]
call fcn.00445636
cmp dword [ebp - 0x210], 0
je 0x422652
push dword [ebp - 0x210]
call fcn.00445636
push dword [ebp - 0x214]
call fcn.00402782
cmp dword [ebp - 0x218], 0
je 0x422671
push dword [ebp - 0x218]
call fcn.00445636
cmp dword [ebp - 0x258], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x42268e
push dword [ebp - 0x258]
call esi
mov dword [ebp - 0x258], edi
cmp dword [ebp - 0x25c], 0
je 0x4226a5
push dword [ebp - 0x25c]
call esi
mov dword [ebp - 0x25c], edi
cmp dword [ebp - 0x22c], 0xffffffff
je 0x4226bd
push dword [ebp - 0x22c]
call esi
or dword [ebp - 0x22c], 0xffffffff
mov esi, dword [ebp - 0x230]
push 1
push edi
push str.WixBundleExecutePackageCacheFolder
push esi
call fcn.004082c0
push 1
push edi
push str.WixBundleExecutePackageAction
push esi
call fcn.004082c0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e06f
mov esp, ebp
pop ebp
ret 0x18