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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x44c4e8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x2f8], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
push 0x208
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x21a]
mov edi, edx
push esi
push eax
mov ebx, ecx
mov dword [ebp - 0x2ec], edi
mov word [ebp - 0x21c], si
call fcn.0042f6b0
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jbe 0x403a23
mov word [ebp - 0x14], si
jmp 0x403a2a
mov word [ebp - 0x21c], si
lea eax, [ebp - 0x318]
push eax
push 0x3b
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x310], esi
mov dword [ebp - 0x30c], esi
call fcn.0040d583
pop ecx
pop ecx
lea eax, [ebp - 0x318]
call fcn.004010a2
xor ebx, ebx
cmp eax, ebx
je 0x404096
mov dword [ebp - 0x2e8], ebx
jbe 0x404080
push dword [ebp - 0x2e8]
lea esi, [ebp - 0x318]
call fcn.004010b8
lea esi, [ebp - 0x2a8]
call fcn.00401083
mov eax, esi
push 0x440ecc
push eax
call fcn.0040c3bf
cmp dword [ebp - 0x294], ebx
pop ecx
pop ecx
jne 0x403aad
push ebx
push 1
call fcn.0040115f
jmp 0x404063
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x308]
mov dword [ebp - 0x2ac], 7
mov dword [ebp - 0x2b0], ebx
mov word [ebp - 0x2c0], bx
mov dword [ebp - 0x304], ebx
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], ebx
mov byte [ebp - 0x2e1], bl
call fcn.00404810
test al, al
jne 0x403b6f
cmp dword [edi + 0x18], 8
jb 0x403afd
mov eax, dword [edi + 4]
jmp 0x403b00
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edi, [ebp - 0x2a8]
lea ecx, [ebp - 0x2e0]
call fcn.0040b809
push 0xffffffffffffffff
mov ecx, edi
push ecx
xor ebx, ebx
call fcn.004010d7
push ebx
push 1
lea esi, [ebp - 0x2e0]
call fcn.0040115f
mov eax, edi
push eax
mov eax, dword [ebp - 0x2ec]
call fcn.00403929
test al, al
mov byte [ebp - 0x2e1], al
jne 0x404032
lea esi, [ebp - 0x2e0]
call fcn.0040d55e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c4]
push ecx
call fcn.004010d7
push ebx
push 1
jmp 0x403f4d
push ebx
lea esi, [ebp - 0x308]
call fcn.004010b8
lea esi, [ebp - 0x238]
call fcn.00401083
push 0x5c
push 0x2f
call fcn.0040c344
pop ecx
pop ecx
mov edi, esi
lea ecx, [ebp - 0x28c]
call fcn.0040b809
push 0xffffffffffffffff
mov ecx, esi
push ecx
xor ebx, ebx
call fcn.004010d7
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x28c]
call fcn.0040115f
lea eax, [ebp - 0x308]
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], ebx
mov word [ebp - 0x250], bx
mov dword [ebp - 0x2f0], edi
call fcn.004010a2
cmp eax, edi
jbe 0x403c99
mov dword [ebp - 0x320], 0x20
push dword [ebp - 0x2f0]
lea esi, [ebp - 0x308]
call fcn.004010b8
mov ecx, eax
push 1
lea eax, [ebp - 0x320]
push eax
xor eax, eax
mov dword [ebp - 0x2f4], ecx
call fcn.00404a88
cmp eax, 0xffffffff
je 0x403c53
mov edi, 0x440ed8
push edi
lea eax, [ebp - 0x254]
push eax
call fcn.00404949
mov eax, dword [ebp - 0x2f4]
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x254]
call fcn.004021d1
push edi
mov eax, esi
push eax
call fcn.00404949
jmp 0x403c7c
cmp dword [ebp - 0x240], ebx
je 0x403c68
push 0x20
lea esi, [ebp - 0x254]
call fcn.004020ee
mov eax, dword [ebp - 0x2f4]
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x254]
call fcn.004021d1
inc dword [ebp - 0x2f0]
lea eax, [ebp - 0x308]
call fcn.004010a2
cmp dword [ebp - 0x2f0], eax
jb 0x403bf4
lea esi, [ebp - 0x238]
call fcn.0040cd3f
mov byte [ebp - 0x2e2], al
mov eax, dword [ebp - 0x2ec]
lea esi, [ebp - 0x270]
call fcn.00401083
cmp byte [ebp - 0x2e2], 0
jne 0x403d19
mov ecx, dword [ebp - 0x2ec]
lea eax, [ebp - 0x238]
push eax
lea edi, [ebp - 0x28c]
call fcn.0040cc8c
pop ecx
mov eax, edi
push eax
call fcn.0040ce38
test al, al
pop ecx
je 0x403d0b
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
push eax
xor ebx, ebx
mov eax, edi
call fcn.004010d7
mov eax, esi
push eax
lea edi, [ebp - 0x238]
call fcn.0040bf04
pop ecx
push ebx
push 1
lea esi, [ebp - 0x28c]
call fcn.0040115f
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x2e0]
call fcn.0040d2bd
cmp byte [ebp + 0x10], 0
pop ecx
je 0x403e87
mov eax, 0x440edc
lea ecx, [ebp - 0x28c]
call fcn.00401592
lea eax, [ebp - 0x28c]
lea ecx, [ebp - 0x2e0]
call fcn.0040c230
mov ebx, eax
neg ebx
sbb bl, bl
xor edi, edi
push 0
inc edi
push edi
lea esi, [ebp - 0x28c]
inc bl
call fcn.0040115f
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x35c]
push 0
push eax
call fcn.0042f6b0
mov eax, dword [ebp - 0x2f8]
add esp, 0xc
neg bl
mov dword [ebp - 0x354], eax
mov eax, dword [ebp - 0x234]
mov dword [ebp - 0x35c], esi
mov dword [ebp - 0x358], 0x540
sbb ebx, ebx
and ebx, str.install
cmp dword [ebp - 0x220], 8
mov dword [ebp - 0x350], ebx
jae 0x403dc6
lea eax, [ebp - 0x234]
cmp dword [ebp - 0x258], 8
mov dword [ebp - 0x34c], eax
mov eax, dword [ebp - 0x26c]
jae 0x403de1
lea eax, [ebp - 0x26c]
cmp dword [ebp - 0x240], 0
mov dword [ebp - 0x344], eax
jne 0x403df9
and dword [ebp - 0x348], 0
jmp 0x403e14
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x403e0e
lea eax, [ebp - 0x250]
mov dword [ebp - 0x348], eax
lea eax, [ebp - 0x35c]
push eax
mov dword [ebp - 0x340], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x403e54
lea esi, [ebp - 0x28c]
call fcn.0040d55e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c4]
push ecx
xor ebx, ebx
call fcn.004010d7
push ebx
push 1
call fcn.0040115f
mov byte [ebp - 0x2e1], bl
cmp dword [ebp - 0x324], 0
je 0x403f19
push 0xffffffffffffffff
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x324]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x2e1], 1
jmp 0x403f19
cmp dword [ebp - 0x240], ebx
jne 0x403e93
xor edx, edx
jmp 0x403ea8
cmp dword [ebp - 0x23c], 8
mov edx, dword [ebp - 0x250]
jae 0x403ea8
lea edx, [ebp - 0x250]
cmp dword [ebp - 0x258], 8
mov ecx, dword [ebp - 0x26c]
jae 0x403ebd
lea ecx, [ebp - 0x26c]
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x403ed2
lea eax, [ebp - 0x234]
push 1
push ecx
push edx
push eax
push 0x440db0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta byte [ebp - 0x2e1]
cmp byte [ebp - 0x2e1], 0
jne 0x403f1b
lea esi, [ebp - 0x28c]
call fcn.0040d55e
push 0xffffffffffffffff
lea ecx, [ebp - 0x2c4]
push ecx
xor ebx, ebx
call fcn.004010d7
push ebx
push 1
call fcn.0040115f
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea esi, [ebp - 0x2e0]
call fcn.0040115f
push ebx
push edi
lea esi, [ebp - 0x270]
call fcn.0040115f
push ebx
push edi
lea esi, [ebp - 0x254]
call fcn.0040115f
push ebx
push edi
lea esi, [ebp - 0x238]
call fcn.0040115f
cmp byte [ebp - 0x2e1], 0
jne 0x404032
cmp dword [ebp - 0x290], 8
mov eax, dword [ebp - 0x2a4]
jae 0x403f74
lea eax, [ebp - 0x2a4]
push eax
push 0x27eb
lea ecx, [ebp - 0x270]
call fcn.004038fe
pop ecx
pop ecx
push 0x27e9
call fcn.00404ea0
lea ecx, [ebp - 0x238]
call fcn.0040f8ad
xor edi, edi
cmp dword [ebp - 0x2b0], edi
je 0x403fcb
push 0x440ef8
lea eax, [ebp - 0x270]
push eax
call fcn.00404949
push 0xffffffffffffffff
push edi
lea eax, [ebp - 0x2c4]
lea esi, [ebp - 0x270]
call fcn.004021d1
lea eax, [ebp - 0x270]
push eax
mov eax, dword [ebp - 0x31c]
call fcn.004048e9
cmp dword [ebp - 0x220], 8
mov ecx, dword [ebp - 0x234]
jae 0x403ff2
lea ecx, [ebp - 0x234]
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x404007
lea eax, [ebp - 0x26c]
push edi
push ecx
push eax
push dword [ebp - 0x2f8]
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
push 1
lea esi, [ebp - 0x238]
call fcn.0040115f
push edi
push 1
lea esi, [ebp - 0x270]
call fcn.0040115f
lea esi, [ebp - 0x308]
call fcn.004048aa
push 0
push 1
lea esi, [ebp - 0x2c4]
call fcn.0040115f
push 0
push 1
lea esi, [ebp - 0x2a8]
call fcn.0040115f
mov edi, dword [ebp - 0x2ec]
xor ebx, ebx
inc dword [ebp - 0x2e8]
lea eax, [ebp - 0x318]
call fcn.004010a2
cmp dword [ebp - 0x2e8], eax
jb 0x403a6d
cmp word [ebp - 0x21c], bx
je 0x404096
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea esi, [ebp - 0x318]
call fcn.004048aa
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f5f3
leave
ret 0xc