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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp + 0x14]
push 0x20a
mov dword [ebp - 0x2f0], eax
lea eax, [ebp - 0x21c]
push ebx
push eax
mov dword [ebp - 0x2ec], edi
call fcn.0043d260
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x406183
xor eax, eax
mov word [ebp - 0x14], ax
jmp 0x40618c
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0x2e8], ebx
push eax
push 0x3b
pop edx
mov ecx, esi
mov dword [ebp - 0x2e4], ebx
mov dword [ebp - 0x2e0], ebx
call fcn.00413600
mov esi, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2cc], esi
pop ecx
cmp esi, eax
je 0x40678d
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov ebx, eax
test ebx, ebx
jmp 0x40676a
push esi
lea ecx, [ebp - 0x2ac]
call fcn.00402436
mov edx, str.__r_t_n
lea ecx, [ebp - 0x2ac]
call fcn.0040c220
cmp dword [ebp - 0x29c], 0
je 0x406751
xor eax, eax
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
xor ebx, ebx
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x284], ebx
push eax
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2dc], ebx
push eax
mov dword [ebp - 0x2d8], ebx
mov dword [ebp - 0x2d4], ebx
call fcn.00406d7b
test al, al
jne 0x4062bf
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x406252
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x27c]
call fcn.00403388
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004023ff
lea ecx, [ebp - 0x27c]
call fcn.0040203f
push edi
lea eax, [ebp - 0x2ac]
push eax
call fcn.00406098
mov bl, al
test bl, bl
jne 0x406735
lea ecx, [ebp - 0x27c]
call fcn.00414660
push eax
lea ecx, [ebp - 0x294]
call fcn.004023ff
lea ecx, [ebp - 0x27c]
call fcn.0040203f
jmp 0x406642
mov esi, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x264]
push esi
call fcn.00402436
push 0x5c
push 0x2f
pop edx
lea ecx, [ebp - 0x264]
call fcn.0040c150
add esp, 4
mov edx, ecx
lea ecx, [ebp - 0x27c]
call fcn.00403388
push eax
lea ecx, [ebp - 0x264]
call fcn.004023ff
lea ecx, [ebp - 0x27c]
call fcn.0040203f
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov edi, ebx
mov eax, dword [ebp - 0x2d8]
sub eax, esi
mov dword [ebp - 0x224], edi
push 0x18
cdq
pop ecx
idiv ecx
cmp eax, 1
jbe 0x4063cd
add esi, ecx
lea ebx, [eax - 1]
push ecx
push 0x20
mov ecx, esi
call fcn.00401f47
cmp eax, 0xffffffff
je 0x40638d
mov edi, 0x459850
push edi
call fcn.0043f51e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.004025c2
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406371
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x234]
push eax
call fcn.004025c2
push 0x459850
call fcn.0043f51e
pop ecx
jmp 0x4063ab
test edi, edi
je 0x40639e
push 0x20
lea ecx, [ebp - 0x234]
call fcn.00403171
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x4063a8
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.004025c2
push 0x18
pop eax
add esi, eax
sub ebx, 1
je 0x4063cd
mov edi, dword [ebp - 0x224]
jmp 0x40633f
lea ecx, [ebp - 0x264]
call fcn.0040ef50
mov edi, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x24c]
push edi
mov bl, al
call fcn.00402436
test bl, bl
jne 0x406442
lea eax, [ebp - 0x264]
mov edx, edi
push eax
lea ecx, [ebp - 0x27c]
call fcn.0040ea00
pop ecx
lea ecx, [ebp - 0x27c]
call fcn.0040efc0
test al, al
je 0x406437
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401f8e
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x264]
call fcn.0040dd90
lea ecx, [ebp - 0x27c]
call fcn.0040203f
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x2c4]
call fcn.004112c0
cmp byte [ebp + 0x18], 0
je 0x40658b
cmp dword [ebp - 0x2b0], 8
lea ecx, [ebp - 0x2c4]
mov edx, str..inf
cmovae ecx, dword [ebp - 0x2c4]
call fcn.0040c020
push 0x3c
pop esi
push esi
mov bl, al
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.0043d260
mov eax, dword [ebp - 0x2c8]
xor ecx, ecx
mov dword [ebp - 0x324], eax
add esp, 0xc
test bl, bl
mov dword [ebp - 0x32c], esi
mov eax, str.install
mov dword [ebp - 0x328], 0x540
cmove eax, ecx
cmp dword [ebp - 0x250], 8
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x264]
cmovae eax, dword [ebp - 0x264]
cmp dword [ebp - 0x238], 8
mov dword [ebp - 0x31c], eax
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
mov dword [ebp - 0x314], eax
cmp dword [ebp - 0x224], ecx
jne 0x406504
and dword [ebp - 0x318], ecx
jmp 0x40651e
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x310], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40655b
lea ecx, [ebp - 0x27c]
call fcn.00414660
push eax
lea ecx, [ebp - 0x294]
call fcn.004023ff
lea ecx, [ebp - 0x27c]
call fcn.0040203f
xor bl, bl
cmp dword [ebp - 0x2f4], 0
je 0x406610
push 0xffffffffffffffff
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2f4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc bl
jmp 0x406610
cmp dword [ebp - 0x224], 0
jne 0x406598
xor edx, edx
jmp 0x4065ac
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
cmovae edx, dword [ebp - 0x234]
cmp dword [ebp - 0x238], 8
lea ecx, [ebp - 0x24c]
push 1
cmovae ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x264]
cmp dword [ebp - 0x250], 8
push ecx
cmovae eax, dword [ebp - 0x264]
push edx
push eax
push 0x4597c8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
ja 0x406610
lea ecx, [ebp - 0x27c]
call fcn.00414660
push eax
lea ecx, [ebp - 0x294]
call fcn.004023ff
lea ecx, [ebp - 0x27c]
call fcn.0040203f
lea ecx, [ebp - 0x2c4]
call fcn.0040203f
lea ecx, [ebp - 0x24c]
call fcn.0040203f
lea ecx, [ebp - 0x234]
call fcn.0040203f
lea ecx, [ebp - 0x264]
call fcn.0040203f
mov esi, dword [ebp - 0x2cc]
test bl, bl
jne 0x406735
push 8
pop ebx
cmp dword [ebp - 0x298], ebx
lea eax, [ebp - 0x2ac]
cmovae eax, dword [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x24c]
push 0x27eb
push eax
call fcn.00403320
add esp, 0xc
lea eax, [ebp - 0x2c4]
push 0x27e9
push eax
call fcn.00403463
mov ecx, eax
call fcn.0041c0dd
cmp dword [ebp - 0x284], 0
je 0x4066d7
push 0x459878
call fcn.0043f51e
pop ecx
push eax
push 0x459878
lea ecx, [ebp - 0x24c]
call fcn.004025c2
cmp dword [ebp - 0x280], ebx
lea eax, [ebp - 0x294]
push dword [ebp - 0x284]
cmovae eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x24c]
push eax
call fcn.004025c2
mov ecx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x24c]
push eax
call fcn.004047f6
cmp dword [ebp - 0x2b0], ebx
lea ecx, [ebp - 0x2c4]
push 0
cmovae ecx, dword [ebp - 0x2c4]
lea eax, [ebp - 0x24c]
cmp dword [ebp - 0x238], ebx
push ecx
cmovae eax, dword [ebp - 0x24c]
push eax
push dword [ebp - 0x2c8]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x2c4]
call fcn.0040203f
lea ecx, [ebp - 0x24c]
call fcn.0040203f
lea ecx, [ebp - 0x2dc]
call fcn.00401fed
lea ecx, [ebp - 0x294]
call fcn.0040203f
mov ebx, dword [ebp - 0x2d0]
lea ecx, [ebp - 0x2ac]
call fcn.0040203f
push 0x18
pop eax
add esi, eax
sub ebx, 1
mov dword [ebp - 0x2cc], esi
mov dword [ebp - 0x2d0], ebx
jne 0x4061db
cmp word [ebp - 0x21c], 0
je 0x40678d
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp - 0x2e8]
call fcn.00401fed
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b572
leave
ret 0x14