Function at 0x406100
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.0043cc90
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x406169
xor eax, eax
mov word [ebp - 0x14], ax
jmp 0x406172
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.00413310
mov esi, dword [ebp - 0x2e8]
mov eax, dword [ebp - 0x2e4]
mov dword [ebp - 0x2cc], esi
pop ecx
cmp esi, eax
je 0x406773
sub eax, esi
push 0x18
cdq
pop ecx
idiv ecx
mov ebx, eax
test ebx, ebx
jmp 0x406750
push esi
lea ecx, [ebp - 0x2ac]
call fcn.0040241c
mov edx, str.__r_t_n
lea ecx, [ebp - 0x2ac]
call fcn.0040c210
cmp dword [ebp - 0x29c], 0
je 0x406737
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.00406d61
test al, al
jne 0x4062a5
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x406238
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x2ac]
lea ecx, [ebp - 0x27c]
call fcn.0040336e
push eax
lea ecx, [ebp - 0x2ac]
call fcn.004023e5
lea ecx, [ebp - 0x27c]
call fcn.0040203f
push edi
lea eax, [ebp - 0x2ac]
push eax
call fcn.0040607e
mov bl, al
test bl, bl
jne 0x40671b
lea ecx, [ebp - 0x27c]
call fcn.00414370
push eax
lea ecx, [ebp - 0x294]
call fcn.004023e5
lea ecx, [ebp - 0x27c]
call fcn.0040203f
jmp 0x406628
mov esi, dword [ebp - 0x2dc]
lea ecx, [ebp - 0x264]
push esi
call fcn.0040241c
push 0x5c
push 0x2f
pop edx
lea ecx, [ebp - 0x264]
call fcn.0040c140
add esp, 4
mov edx, ecx
lea ecx, [ebp - 0x27c]
call fcn.0040336e
push eax
lea ecx, [ebp - 0x264]
call fcn.004023e5
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 0x4063b3
add esi, ecx
lea ebx, [eax - 1]
push ecx
push 0x20
mov ecx, esi
call fcn.00401f47
cmp eax, 0xffffffff
je 0x406373
mov edi, 0x459840
push edi
call fcn.0043ef4e
pop ecx
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.004025a8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x406357
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x234]
push eax
call fcn.004025a8
push 0x459840
call fcn.0043ef4e
pop ecx
jmp 0x406391
test edi, edi
je 0x406384
push 0x20
lea ecx, [ebp - 0x234]
call fcn.00403157
cmp dword [esi + 0x14], 8
mov edi, esi
jb 0x40638e
mov edi, dword [esi]
mov eax, dword [esi + 0x10]
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.004025a8
push 0x18
pop eax
add esi, eax
sub ebx, 1
je 0x4063b3
mov edi, dword [ebp - 0x224]
jmp 0x406325
lea ecx, [ebp - 0x264]
call fcn.0040ef50
mov edi, dword [ebp - 0x2ec]
lea ecx, [ebp - 0x24c]
push edi
mov bl, al
call fcn.0040241c
test bl, bl
jne 0x406428
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 0x40641d
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x264]
call fcn.00401f8e
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x264]
call fcn.0040dd80
lea ecx, [ebp - 0x27c]
call fcn.0040203f
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x2c4]
call fcn.004112c0
cmp byte [ebp + 0x18], 0
je 0x406571
cmp dword [ebp - 0x2b0], 8
lea ecx, [ebp - 0x2c4]
mov edx, str..inf
cmovae ecx, dword [ebp - 0x2c4]
call fcn.0040c010
push 0x3c
pop esi
push esi
mov bl, al
lea eax, [ebp - 0x32c]
push 0
push eax
call fcn.0043cc90
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 0x4064ea
and dword [ebp - 0x318], ecx
jmp 0x406504
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 0x406541
lea ecx, [ebp - 0x27c]
call fcn.00414370
push eax
lea ecx, [ebp - 0x294]
call fcn.004023e5
lea ecx, [ebp - 0x27c]
call fcn.0040203f
xor bl, bl
cmp dword [ebp - 0x2f4], 0
je 0x4065f6
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 0x4065f6
cmp dword [ebp - 0x224], 0
jne 0x40657e
xor edx, edx
jmp 0x406592
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 0x4597b8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
ja 0x4065f6
lea ecx, [ebp - 0x27c]
call fcn.00414370
push eax
lea ecx, [ebp - 0x294]
call fcn.004023e5
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 0x40671b
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.00403306
add esp, 0xc
lea eax, [ebp - 0x2c4]
push 0x27e9
push eax
call fcn.00403449
mov ecx, eax
call fcn.0041aa54
cmp dword [ebp - 0x284], 0
je 0x4066bd
push 0x459868
call fcn.0043ef4e
pop ecx
push eax
push 0x459868
lea ecx, [ebp - 0x24c]
call fcn.004025a8
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.004025a8
mov ecx, dword [ebp - 0x2f0]
lea eax, [ebp - 0x24c]
push eax
call fcn.004047dc
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 0x4061c1
cmp word [ebp - 0x21c], 0
je 0x406773
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.0043af96
leave
ret 0x14