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

Disassembly:
push 0x358
mov eax, 0x4473aa
call fcn.004378a5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x300], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x208
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x222]
mov edi, edx
push ebx
push eax
mov esi, ecx
mov dword [ebp - 0x2f4], edi
mov word [ebp - 0x224], bx
call fcn.00435a10
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, ebx
jbe 0x402dbc
mov word [ebp - 0x1c], bx
jmp 0x402dc3
mov word [ebp - 0x224], bx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x314], ebx
lea eax, [ebp - 0x320]
push eax
push 0x3b
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0040e240
pop ecx
pop ecx
lea eax, [ebp - 0x320]
call fcn.00403cfb
cmp eax, ebx
je 0x403476
mov dword [ebp - 0x2f0], ebx
jbe 0x403460
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x320]
call fcn.00403d11
lea esi, [ebp - 0x2b0]
call fcn.00403d90
push 0x449e0c
mov eax, esi
mov byte [ebp - 4], 1
call fcn.0040c320
cmp dword [ebp - 0x29c], ebx
pop ecx
jne 0x402e4e
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.004012ba
jmp 0x403443
mov dword [ebp - 0x2b4], 7
mov dword [ebp - 0x2b8], ebx
mov word [ebp - 0x2c8], bx
mov dword [ebp - 0x30c], ebx
mov dword [ebp - 0x308], ebx
mov dword [ebp - 0x304], ebx
lea eax, [ebp - 0x2b0]
push eax
lea ecx, [ebp - 0x310]
mov byte [ebp - 4], 3
mov byte [ebp - 0x2e9], bl
call fcn.00403c27
test al, al
jne 0x402f24
cmp dword [edi + 0x18], 8
jb 0x402ea6
mov eax, dword [edi + 4]
jmp 0x402ea9
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edi, [ebp - 0x2b0]
lea ecx, [ebp - 0x2e8]
call fcn.0042d8a5
push 0xffffffffffffffff
mov ecx, edi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 4
call fcn.00401318
push ebx
push 1
lea esi, [ebp - 0x2e8]
mov byte [ebp - 4], 3
call fcn.004012ba
mov eax, edi
push eax
mov eax, dword [ebp - 0x2f4]
call fcn.00402cc9
test al, al
mov byte [ebp - 0x2e9], al
jne 0x403411
lea esi, [ebp - 0x2e8]
call fcn.0040cff0
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
mov byte [ebp - 4], 5
call fcn.00401318
push ebx
push 1
jmp 0x403323
push ebx
lea esi, [ebp - 0x310]
call fcn.00403d11
lea esi, [ebp - 0x240]
call fcn.00403d90
push 0x5c
push 0x2f
mov edi, esi
mov byte [ebp - 4], 6
call fcn.0040c250
pop ecx
pop ecx
lea ecx, [ebp - 0x294]
call fcn.0042d8a5
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.00401318
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x294]
call fcn.004012ba
mov dword [ebp - 0x244], 7
mov dword [ebp - 0x248], ebx
mov word [ebp - 0x258], bx
lea eax, [ebp - 0x310]
mov byte [ebp - 4], 8
mov dword [ebp - 0x2f8], edi
call fcn.00403cfb
cmp eax, edi
jbe 0x40305a
mov dword [ebp - 0x328], 0x20
push dword [ebp - 0x2f8]
lea esi, [ebp - 0x310]
call fcn.00403d11
mov ecx, eax
push 1
lea eax, [ebp - 0x328]
push eax
xor eax, eax
mov dword [ebp - 0x2fc], ecx
call fcn.00403f39
cmp eax, 0xffffffff
je 0x403014
mov edi, 0x449e18
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.00403daf
mov eax, dword [ebp - 0x2fc]
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x25c]
call fcn.00404251
push edi
mov eax, esi
push eax
call fcn.00403daf
jmp 0x40303d
cmp dword [ebp - 0x248], ebx
je 0x403029
push 0x20
lea esi, [ebp - 0x25c]
call fcn.00403dcd
mov eax, dword [ebp - 0x2fc]
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x25c]
call fcn.00404251
inc dword [ebp - 0x2f8]
lea eax, [ebp - 0x310]
call fcn.00403cfb
cmp dword [ebp - 0x2f8], eax
jb 0x402fb5
lea esi, [ebp - 0x240]
call fcn.0040d360
mov byte [ebp - 0x2ea], al
mov eax, dword [ebp - 0x2f4]
lea esi, [ebp - 0x278]
call fcn.00403d90
cmp byte [ebp - 0x2ea], 0
mov byte [ebp - 4], 9
jne 0x4030e3
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x2f4]
lea edi, [ebp - 0x294]
call fcn.0040d1a0
mov eax, edi
push eax
mov byte [ebp - 4], 0xa
call fcn.0040d650
add esp, 0xc
test al, al
je 0x4030d1
push 0xffffffffffffffff
lea eax, [ebp - 0x240]
push eax
xor ebx, ebx
mov eax, edi
call fcn.00401318
lea edi, [ebp - 0x240]
call fcn.0040bb40
push ebx
push 1
lea esi, [ebp - 0x294]
mov byte [ebp - 4], 9
call fcn.004012ba
lea eax, [ebp - 0x2e8]
push eax
lea ecx, [ebp - 0x240]
call fcn.0040dff0
pop ecx
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 0xb
je 0x403259
mov eax, 0x449e1c
lea ecx, [ebp - 0x294]
call fcn.00401222
lea eax, [ebp - 0x294]
lea esi, [ebp - 0x2e8]
call fcn.0040c0d0
mov ebx, eax
neg ebx
sbb bl, bl
xor edi, edi
push 0
inc edi
push edi
lea esi, [ebp - 0x294]
inc bl
call fcn.004012ba
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x364]
push 0
push eax
call fcn.00435a10
mov eax, dword [ebp - 0x300]
add esp, 0xc
neg bl
mov dword [ebp - 0x35c], eax
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x364], esi
mov dword [ebp - 0x360], 0x540
sbb ebx, ebx
and ebx, str.install
cmp dword [ebp - 0x228], 8
mov dword [ebp - 0x358], ebx
jae 0x403194
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x260], 8
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x274]
jae 0x4031af
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x248], 0
mov dword [ebp - 0x34c], eax
jne 0x4031c7
and dword [ebp - 0x350], 0
jmp 0x4031e2
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
jae 0x4031dc
lea eax, [ebp - 0x258]
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x364]
push eax
mov dword [ebp - 0x348], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x403226
lea esi, [ebp - 0x294]
call fcn.0040cff0
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
mov byte [ebp - 0x2e9], bl
cmp dword [ebp - 0x32c], 0
je 0x4032ef
push 0xffffffffffffffff
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x32c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2e9], 1
jmp 0x4032ef
cmp dword [ebp - 0x248], ebx
jne 0x403265
xor edx, edx
jmp 0x40327a
cmp dword [ebp - 0x244], 8
mov edx, dword [ebp - 0x258]
jae 0x40327a
lea edx, [ebp - 0x258]
cmp dword [ebp - 0x260], 8
mov ecx, dword [ebp - 0x274]
jae 0x40328f
lea ecx, [ebp - 0x274]
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x4032a4
lea eax, [ebp - 0x23c]
push 1
push ecx
push edx
push eax
push 0x449dac
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e9]
cmp byte [ebp - 0x2e9], 0
jne 0x4032f1
lea esi, [ebp - 0x294]
call fcn.0040cff0
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xd
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 - 0x278]
call fcn.004012ba
push ebx
push edi
lea esi, [ebp - 0x25c]
call fcn.004012ba
push ebx
push edi
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.004012ba
cmp byte [ebp - 0x2e9], 0
jne 0x403411
cmp dword [ebp - 0x298], 8
mov eax, dword [ebp - 0x2ac]
jae 0x40334e
lea eax, [ebp - 0x2ac]
push eax
push 0x527f
lea ecx, [ebp - 0x278]
call fcn.00402c96
lea eax, [ebp - 0x240]
push 0x507e
push eax
mov byte [ebp - 4], 0xe
call fcn.00402c78
add esp, 0x10
xor edi, edi
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x2b8], edi
je 0x4033aa
push 0x449e38
lea eax, [ebp - 0x278]
push eax
call fcn.00403daf
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2cc]
lea esi, [ebp - 0x278]
call fcn.00404251
lea eax, [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x324]
call fcn.00403d30
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x4033d1
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x260], 8
mov eax, dword [ebp - 0x274]
jae 0x4033e6
lea eax, [ebp - 0x274]
push edi
push ecx
push eax
push dword [ebp - 0x300]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push 1
lea esi, [ebp - 0x240]
call fcn.004012ba
push edi
push 1
lea esi, [ebp - 0x278]
call fcn.004012ba
lea esi, [ebp - 0x310]
call fcn.00403cbc
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x2cc]
call fcn.004012ba
push ebx
push 1
lea esi, [ebp - 0x2b0]
mov byte [ebp - 4], bl
call fcn.004012ba
mov edi, dword [ebp - 0x2f4]
inc dword [ebp - 0x2f0]
lea eax, [ebp - 0x320]
call fcn.00403cfb
cmp dword [ebp - 0x2f0], eax
jb 0x402e09
cmp word [ebp - 0x224], bx
je 0x403476
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x320]
call fcn.00403cbc
call fcn.00437928
ret 0xc