Function at 0x40be10
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429bbe
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x43481c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor eax, eax
push 0x206
mov dword [ebp - 4], 0
push eax
mov word [ebp - reloc.shlwapi.dll_StrRStrIA], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.00413d60
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c25a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00406af0
mov byte [ebp - 4], 1
mov eax, dword [section..data_1]
mov ecx, section..data_1
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov edx, 0x4363e0
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
call fcn.0040a580
mov edx, reloc.shlwapi.dll_PathFindFileNameA
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 3
call fcn.0040a580
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x224]
cmp dword [eax - 0xc], 0
je 0x40c1cd
mov eax, dword [ebp - 0x238]
cmp dword [eax - 0xc], 0
je 0x40c1cd
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040d2d0
push dword [ebp - 0x224]
lea ecx, [ebp - 0x220]
call fcn.0040de50
test eax, eax
je 0x40c1cd
mov ecx, dword [ebp - 0x220]
call fcn.0040b760
test eax, eax
je 0x40c1cd
push dword [ebp - 0x238]
lea ecx, [ebp - 0x220]
call fcn.0040de50
test eax, eax
je 0x40c1cd
push 0
lea ecx, [ebp - 0x220]
call fcn.0040ddd0
test eax, eax
je 0x40c1cd
push ecx
mov ecx, dword [ebp - 0x220]
push 0x19de0
mov edx, 0x451168
call fcn.0040b990
add esp, 8
test eax, eax
je 0x40c1cd
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0040d2d0
call fcn.00407d40
test eax, eax
je 0x40c005
mov edx, 0x436464
lea ecx, [ebp - 0x228]
call fcn.0040a580
mov edx, 0x436428
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.0040a580
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.0040d6b0
push dword [ebp - 0x22c]
lea ecx, [ebp - 0x224]
push dword [ebp - 0x228]
call fcn.0040d340
lea ecx, [ebp - 0x22c]
call fcn.00406ba0
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 4
call fcn.00406ba0
mov edx, 0x436384
lea ecx, [ebp - 0x23c]
call fcn.0040a580
mov edx, 0x436350
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.0040a580
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x23c]
cmp dword [eax - 0xc], 0
je 0x40c1b7
mov eax, dword [ebp - 0x230]
cmp dword [eax - 0xc], 0
je 0x40c1b7
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x220]
call fcn.0040d2d0
push dword [ebp - 0x23c]
lea ecx, [ebp - 0x220]
call fcn.0040de50
test eax, eax
je 0x40c1b7
mov ecx, dword [ebp - 0x220]
call fcn.0040b760
test eax, eax
je 0x40c1b7
push dword [ebp - 0x230]
lea ecx, [ebp - 0x220]
call fcn.0040de50
test eax, eax
je 0x40c1b7
mov esi, dword [ebp - 0x220]
push ecx
push 0x1ac30
mov edx, 0x436538
mov ecx, esi
call fcn.0040b990
add esp, 8
test eax, eax
je 0x40c1b7
mov ecx, esi
call fcn.0040bd30
test eax, eax
je 0x40c1b7
mov edx, 0x43632c
lea ecx, [ebp - 0x228]
call fcn.0040a580
mov edx, 0x4362e8
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 9
call fcn.0040a580
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x228]
cmp dword [eax - 0xc], 0
je 0x40c1a1
mov ecx, dword [ebp - 0x22c]
cmp dword [ecx - 0xc], 0
je 0x40c1a1
cmp dword [0x46c718], 0
je 0x40c12d
push 1
push ecx
push eax
jmp 0x40c15c
push 0
push ecx
mov ecx, dword [ebp - 0x224]
push eax
call fcn.00406a70
mov esi, eax
add esp, 0xc
test esi, esi
je 0x40c170
call fcn.004061c0
test eax, eax
je 0x40c16c
push 1
push dword [ebp - 0x22c]
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x224]
call fcn.00406a70
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x40c197
mov edx, dword [ebp - 0x224]
mov ecx, dword [ebp - 0x228]
call fcn.0040a1e0
push 0
push 0
push 0
push dword [ebp - 0x224]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
call fcn.00410460
call fcn.00410700
lea ecx, [ebp - 0x22c]
call fcn.00406ba0
lea ecx, [ebp - 0x228]
call fcn.00406ba0
lea ecx, [ebp - 0x230]
call fcn.00406ba0
lea ecx, [ebp - 0x23c]
call fcn.00406ba0
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
or esi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40c1f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathFileExistsA]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x224]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c216
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathFileExistsA]
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov ecx, esi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c239
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathFileExistsA]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40c25a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + reloc.shlwapi.dll_PathFileExistsA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00411784
mov esp, ebp
pop ebp
ret