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

Disassembly:
push 0x354
mov eax, 0x445c56
call fcn.004363af
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2fc], eax
mov eax, dword [ebp + 0x10]
xor esi, esi
push 0x208
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x222]
push esi
push eax
mov edi, ecx
mov word [ebp - 0x224], si
call fcn.00434680
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
jbe 0x402e0a
mov word [ebp - 0x1c], si
jmp 0x402e11
mov word [ebp - 0x224], si
mov dword [ebp - 0x308], esi
mov dword [ebp - 0x304], esi
mov dword [ebp - 0x300], esi
lea eax, [ebp - 0x30c]
push eax
push 0x3b
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.0040e0c0
pop ecx
pop ecx
lea eax, [ebp - 0x30c]
call fcn.00403cd6
cmp eax, esi
je 0x403465
mov dword [ebp - 0x2f0], esi
jbe 0x40344f
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x30c]
call fcn.00407ef0
lea esi, [ebp - 0x294]
call fcn.00403d4c
mov edi, esi
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 1
call fcn.0042c5d0
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 2
call fcn.00401318
push ebx
push 1
lea esi, [ebp - 0x2e8]
mov byte [ebp - 4], 1
call fcn.004012ba
push 0x448e0c
mov eax, edi
call fcn.0040c1c0
cmp dword [ebp - 0x280], ebx
pop ecx
je 0x40341e
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], ebx
mov word [ebp - 0x2c8], bx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x310], ebx
mov eax, edi
push eax
lea ecx, [ebp - 0x31c]
mov byte [ebp - 4], 4
mov byte [ebp - 0x2e9], bl
call fcn.00403c02
test al, al
jne 0x402f6b
mov esi, dword [ebp - 0x2f8]
cmp dword [esi + 0x18], 8
jb 0x402f15
mov eax, dword [esi + 4]
jmp 0x402f18
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x294]
push eax
mov eax, esi
call fcn.00402d16
test al, al
mov byte [ebp - 0x2e9], al
jne 0x403405
lea esi, [ebp - 0x2e8]
call fcn.0040ce90
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 5
call fcn.00401318
push ebx
push 1
mov byte [ebp - 4], 4
call fcn.004012ba
jmp 0x403322
push ebx
lea esi, [ebp - 0x31c]
call fcn.00407ef0
lea esi, [ebp - 0x240]
call fcn.00403d4c
push 0x5c
push 0x2f
mov edi, esi
call fcn.0040c0f0
pop ecx
pop ecx
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], ebx
mov word [ebp - 0x274], bx
xor esi, esi
inc esi
lea eax, [ebp - 0x31c]
mov byte [ebp - 4], 7
mov dword [ebp - 0x2f4], esi
call fcn.00403cd6
cmp eax, esi
jbe 0x403050
mov dword [ebp - 0x324], 0x20
push dword [ebp - 0x2f4]
lea esi, [ebp - 0x31c]
call fcn.00407ef0
mov esi, eax
push 1
lea eax, [ebp - 0x324]
push eax
xor eax, eax
mov ecx, esi
call fcn.00403eca
cmp eax, 0xffffffff
je 0x403027
mov edi, 0x448e18
push edi
lea eax, [ebp - 0x278]
push eax
call fcn.00403d6b
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x278]
call fcn.004041e2
push edi
mov eax, esi
push eax
call fcn.00403d6b
jmp 0x403037
push 0xffffffffffffffff
mov eax, esi
push ebx
lea esi, [ebp - 0x278]
call fcn.004041e2
inc dword [ebp - 0x2f4]
lea eax, [ebp - 0x31c]
call fcn.00403cd6
cmp dword [ebp - 0x2f4], eax
jb 0x402fd0
lea esi, [ebp - 0x240]
call fcn.0040d200
mov byte [ebp - 0x2ea], al
mov eax, dword [ebp - 0x2f8]
lea esi, [ebp - 0x25c]
call fcn.00403d4c
cmp byte [ebp - 0x2ea], 0
mov byte [ebp - 4], 8
jne 0x4030d9
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x2f8]
lea edi, [ebp - 0x2b0]
call fcn.0040d040
mov eax, edi
push eax
mov byte [ebp - 4], 9
call fcn.0040d4f0
add esp, 0xc
test al, al
je 0x4030c7
push 0xffffffffffffffff
lea eax, [ebp - 0x240]
push eax
xor ebx, ebx
mov eax, edi
call fcn.00401318
lea edi, [ebp - 0x240]
call fcn.0040b9e0
push ebx
push 1
lea esi, [ebp - 0x2b0]
mov byte [ebp - 4], 8
call fcn.004012ba
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040de70
pop ecx
cmp byte [ebp + 0x14], 0
mov byte [ebp - 4], 0xa
je 0x40324f
mov eax, 0x448e1c
lea ecx, [ebp - 0x2b0]
call fcn.00401222
lea eax, [ebp - 0x2b0]
lea esi, [ebp - 0x2e8]
call fcn.0040bf70
mov ebx, eax
neg ebx
sbb bl, bl
xor edi, edi
push 0
inc edi
push edi
lea esi, [ebp - 0x2b0]
inc bl
call fcn.004012ba
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x360]
push 0
push eax
call fcn.00434680
mov eax, dword [ebp - 0x2fc]
add esp, 0xc
neg bl
mov dword [ebp - 0x358], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x360], esi
mov dword [ebp - 0x35c], 0x540
sbb ebx, ebx
and ebx, str.install
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x354], ebx
jae 0x40318a
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x244], 8
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x258]
jae 0x4031a5
lea eax, [ebp - 0x258]
cmp dword [ebp - 0x264], 0
mov dword [ebp - 0x348], eax
jne 0x4031bd
and dword [ebp - 0x34c], 0
jmp 0x4031d8
cmp dword [ebp - 0x260], 8
mov eax, dword [ebp - 0x274]
jae 0x4031d2
lea eax, [ebp - 0x274]
mov dword [ebp - 0x34c], eax
lea eax, [ebp - 0x360]
push eax
mov dword [ebp - 0x344], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40321c
lea esi, [ebp - 0x2b0]
call fcn.0040ce90
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xb
call fcn.00401318
push ebx
push 1
call fcn.004012ba
mov byte [ebp - 0x2e9], bl
cmp dword [ebp - 0x328], 0
je 0x4032e5
push 0xffffffffffffffff
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x328]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2e9], 1
jmp 0x4032e5
cmp dword [ebp - 0x264], ebx
jne 0x40325b
xor edx, edx
jmp 0x403270
cmp dword [ebp - 0x260], 8
mov edx, dword [ebp - 0x274]
jae 0x403270
lea edx, [ebp - 0x274]
cmp dword [ebp - 0x244], 8
mov ecx, dword [ebp - 0x258]
jae 0x403285
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x40329a
lea eax, [ebp - 0x23c]
push 1
push ecx
push edx
push eax
push 0x448dac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e9]
cmp byte [ebp - 0x2e9], 0
jne 0x4032e7
lea esi, [ebp - 0x2b0]
call fcn.0040ce90
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.00401318
push ebx
push 1
call fcn.004012ba
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x2e8]
call fcn.004012ba
push ebx
push edi
lea esi, [ebp - 0x25c]
call fcn.004012ba
push ebx
push edi
lea esi, [ebp - 0x278]
call fcn.004012ba
push ebx
push edi
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 4
call fcn.004012ba
cmp byte [ebp - 0x2e9], 0
jne 0x403405
cmp dword [ebp - 0x27c], 8
mov eax, dword [ebp - 0x290]
jae 0x403344
lea eax, [ebp - 0x290]
push eax
push 0x527f
lea ecx, [ebp - 0x25c]
call fcn.00402ce3
lea eax, [ebp - 0x240]
push 0x507e
push eax
mov byte [ebp - 4], 0xd
call fcn.00402cc5
add esp, 0x10
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x2b8], ebx
je 0x40339e
push 0x448e38
lea eax, [ebp - 0x25c]
push eax
call fcn.00403d6b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2cc]
lea esi, [ebp - 0x25c]
call fcn.004041e2
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x320]
call fcn.00403cec
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x4033c5
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
jae 0x4033da
lea eax, [ebp - 0x258]
push ebx
push ecx
push eax
push dword [ebp - 0x2fc]
call dword [sym.imp.USER32.dll_MessageBoxW]
push ebx
push 1
lea esi, [ebp - 0x240]
call fcn.004012ba
push ebx
push 1
lea esi, [ebp - 0x25c]
call fcn.004012ba
lea esi, [ebp - 0x31c]
call fcn.00403c97
push ebx
push 1
lea esi, [ebp - 0x2cc]
call fcn.004012ba
push ebx
push 1
lea esi, [ebp - 0x294]
mov byte [ebp - 4], 0
call fcn.004012ba
inc dword [ebp - 0x2f0]
lea eax, [ebp - 0x30c]
call fcn.00403cd6
cmp dword [ebp - 0x2f0], eax
jb 0x402e57
xor esi, esi
cmp word [ebp - 0x224], si
je 0x403465
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x30c]
call fcn.00403c97
call fcn.00436432
ret 0x10