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

Disassembly:
push 0x358
mov eax, 0x444240
call fcn.00434958
mov eax, dword [ebp + 8]
mov dword [ebp - 0x300], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0x208
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x222]
mov edi, edx
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x2f4], edi
mov word [ebp - 0x224], si
call fcn.004329b0
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, esi
jbe 0x403c05
mov word [ebp - 0x1c], si
jmp 0x403c0c
mov word [ebp - 0x224], si
mov dword [ebp - 0x31c], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x314], esi
lea eax, [ebp - 0x320]
push eax
push 0x3b
mov dword [ebp - 4], esi
call fcn.0040e136
pop ecx
pop ecx
lea eax, [ebp - 0x320]
call fcn.004010bf
xor ebx, ebx
cmp eax, ebx
je 0x4042c6
mov dword [ebp - 0x2f0], ebx
jbe 0x4042b0
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x320]
call fcn.004010d5
lea esi, [ebp - 0x2b0]
call fcn.004010a0
mov eax, esi
push 0x446e8c
push eax
mov byte [ebp - 4], 1
call fcn.0040d729
cmp dword [ebp - 0x29c], ebx
pop ecx
pop ecx
jne 0x403c99
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.0040117c
jmp 0x404293
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.00404a9e
test al, al
jne 0x403d6f
cmp dword [edi + 0x18], 8
jb 0x403cf1
mov eax, dword [edi + 4]
jmp 0x403cf4
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edi, [ebp - 0x2b0]
lea ecx, [ebp - 0x2e8]
call fcn.0040c43e
push 0xffffffffffffffff
mov ecx, edi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 4
call fcn.004010f4
push ebx
push 1
lea esi, [ebp - 0x2e8]
mov byte [ebp - 4], 3
call fcn.0040117c
mov eax, edi
push eax
mov eax, dword [ebp - 0x2f4]
call fcn.00403b12
test al, al
mov byte [ebp - 0x2e9], al
jne 0x404261
lea esi, [ebp - 0x2e8]
call fcn.0040e34c
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
mov byte [ebp - 4], 5
call fcn.004010f4
push ebx
push 1
jmp 0x404173
push ebx
lea esi, [ebp - 0x310]
call fcn.004010d5
lea esi, [ebp - 0x240]
call fcn.004010a0
push 0x5c
push 0x2f
mov byte [ebp - 4], 6
call fcn.0040d6ae
pop ecx
pop ecx
mov edi, esi
lea ecx, [ebp - 0x294]
call fcn.0040c43e
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
mov byte [ebp - 4], 7
call fcn.004010f4
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x294]
call fcn.0040117c
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.004010bf
cmp eax, edi
jbe 0x403ea5
mov dword [ebp - 0x328], 0x20
push dword [ebp - 0x2f8]
lea esi, [ebp - 0x310]
call fcn.004010d5
mov ecx, eax
push 1
lea eax, [ebp - 0x328]
push eax
xor eax, eax
mov dword [ebp - 0x2fc], ecx
call fcn.00404cf1
cmp eax, 0xffffffff
je 0x403e5f
mov edi, 0x446e98
push edi
lea eax, [ebp - 0x25c]
push eax
call fcn.00404bd2
mov eax, dword [ebp - 0x2fc]
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x25c]
call fcn.004022dd
push edi
mov eax, esi
push eax
call fcn.00404bd2
jmp 0x403e88
cmp dword [ebp - 0x248], ebx
je 0x403e74
push 0x20
lea esi, [ebp - 0x25c]
call fcn.004021f0
mov eax, dword [ebp - 0x2fc]
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x25c]
call fcn.004022dd
inc dword [ebp - 0x2f8]
lea eax, [ebp - 0x310]
call fcn.004010bf
cmp dword [ebp - 0x2f8], eax
jb 0x403e00
lea esi, [ebp - 0x240]
call fcn.0040e0ca
mov byte [ebp - 0x2ea], al
mov eax, dword [ebp - 0x2f4]
lea esi, [ebp - 0x278]
call fcn.004010a0
cmp byte [ebp - 0x2ea], 0
mov byte [ebp - 4], 9
jne 0x403f39
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 0x2f4]
lea ebx, [ebp - 0x294]
call fcn.0040e016
mov eax, ebx
push eax
mov byte [ebp - 4], 0xa
call fcn.0040ce22
add esp, 0xc
test al, al
je 0x403f24
push 0xffffffffffffffff
lea eax, [ebp - 0x240]
push eax
xor ebx, ebx
lea eax, [ebp - 0x294]
call fcn.004010f4
mov eax, esi
push eax
lea edi, [ebp - 0x240]
call fcn.0040cb9e
pop ecx
push 0
push 1
lea esi, [ebp - 0x294]
mov byte [ebp - 4], 9
call fcn.0040117c
xor ebx, ebx
lea ecx, [ebp - 0x240]
lea edi, [ebp - 0x2e8]
call fcn.0040d301
cmp byte [ebp + 0x10], 0
mov byte [ebp - 4], 0xb
je 0x4040a9
mov eax, 0x446e9c
lea ecx, [ebp - 0x294]
call fcn.0040161d
lea eax, [ebp - 0x294]
mov ecx, edi
call fcn.0040d59a
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.0040117c
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x364]
push 0
push eax
call fcn.004329b0
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 0x403fe4
lea eax, [ebp - 0x23c]
cmp dword [ebp - 0x260], 8
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x274]
jae 0x403fff
lea eax, [ebp - 0x274]
cmp dword [ebp - 0x248], 0
mov dword [ebp - 0x34c], eax
jne 0x404017
and dword [ebp - 0x350], 0
jmp 0x404032
cmp dword [ebp - 0x244], 8
mov eax, dword [ebp - 0x258]
jae 0x40402c
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 0x404076
lea esi, [ebp - 0x294]
call fcn.0040e34c
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xc
call fcn.004010f4
push ebx
push 1
call fcn.0040117c
mov byte [ebp - 0x2e9], bl
cmp dword [ebp - 0x32c], 0
je 0x40413f
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 0x40413f
cmp dword [ebp - 0x248], ebx
jne 0x4040b5
xor edx, edx
jmp 0x4040ca
cmp dword [ebp - 0x244], 8
mov edx, dword [ebp - 0x258]
jae 0x4040ca
lea edx, [ebp - 0x258]
cmp dword [ebp - 0x260], 8
mov ecx, dword [ebp - 0x274]
jae 0x4040df
lea ecx, [ebp - 0x274]
cmp dword [ebp - 0x228], 8
mov eax, dword [ebp - 0x23c]
jae 0x4040f4
lea eax, [ebp - 0x23c]
push 1
push ecx
push edx
push eax
push 0x446da8
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e9]
cmp byte [ebp - 0x2e9], 0
jne 0x404141
lea esi, [ebp - 0x294]
call fcn.0040e34c
push 0xffffffffffffffff
lea ecx, [ebp - 0x2cc]
push ecx
xor ebx, ebx
mov byte [ebp - 4], 0xd
call fcn.004010f4
push ebx
push 1
call fcn.0040117c
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x2e8]
call fcn.0040117c
push ebx
push edi
lea esi, [ebp - 0x278]
call fcn.0040117c
push ebx
push edi
lea esi, [ebp - 0x25c]
call fcn.0040117c
push ebx
push edi
lea esi, [ebp - 0x240]
mov byte [ebp - 4], 3
call fcn.0040117c
cmp byte [ebp - 0x2e9], 0
jne 0x404261
cmp dword [ebp - 0x298], 8
mov eax, dword [ebp - 0x2ac]
jae 0x40419e
lea eax, [ebp - 0x2ac]
push eax
push 0x27eb
lea ecx, [ebp - 0x278]
call fcn.00403ae0
lea eax, [ebp - 0x240]
push 0x27e9
push eax
mov byte [ebp - 4], 0xe
call fcn.00403ac3
add esp, 0x10
xor edi, edi
mov byte [ebp - 4], 0xf
cmp dword [ebp - 0x2b8], edi
je 0x4041fa
push 0x446eb8
lea eax, [ebp - 0x278]
push eax
call fcn.00404bd2
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2cc]
lea esi, [ebp - 0x278]
call fcn.004022dd
lea eax, [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x324]
call fcn.00404b72
cmp dword [ebp - 0x228], 8
mov ecx, dword [ebp - 0x23c]
jae 0x404221
lea ecx, [ebp - 0x23c]
cmp dword [ebp - 0x260], 8
mov eax, dword [ebp - 0x274]
jae 0x404236
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.0040117c
push edi
push 1
lea esi, [ebp - 0x278]
call fcn.0040117c
lea esi, [ebp - 0x310]
call fcn.00404b33
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x2cc]
call fcn.0040117c
push ebx
push 1
lea esi, [ebp - 0x2b0]
mov byte [ebp - 4], bl
call fcn.0040117c
mov edi, dword [ebp - 0x2f4]
inc dword [ebp - 0x2f0]
lea eax, [ebp - 0x320]
call fcn.004010bf
cmp dword [ebp - 0x2f0], eax
jb 0x403c52
cmp word [ebp - 0x224], bx
je 0x4042c6
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x320]
call fcn.00404b33
call fcn.004349db
ret 0xc