Function at 0x40e280
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x4380e9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x449320]
push ebx
push esi
mov ebx, ecx
push 0x439c83
lea ecx, [esp + 0x14]
mov dword [esp + 0x11c], eax
call fcn.004057f0
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov dword [esp + 0x124], 0
jle 0x40e389
push 0x5c
push eax
call fcn.0041cb0d
add esp, 8
test eax, eax
je 0x40e389
sub eax, dword [esi]
push edi
mov edi, eax
test edi, edi
jle 0x40e388
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00405460
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call fcn.00401b90
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x128], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e33d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, edi
dec eax
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00407060
push eax
mov ecx, esi
mov byte [esp + 0x12c], 2
call fcn.00401b90
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x128], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e388
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, dword [esp + 0x10]
push 0x439c83
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
je 0x40e59a
mov ecx, dword [esp + 0x10]
push 0x43c240
push ecx
call fcn.0041cd02
add esp, 8
test eax, eax
jne 0x40e445
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.0040d8b0
push esi
push eax
lea eax, [esp + 0x10]
mov bl, 3
push eax
mov byte [esp + 0x130], bl
call fcn.004070c0
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x128], 4
call fcn.00401b90
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x124], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e416
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x124], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e59a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40e59a
mov eax, dword [esp + 0x10]
push str.system32
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
jne 0x40e49b
push 1
push 0x25
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
call fcn.004057f0
push esi
push eax
lea eax, [esp + 0x14]
mov bl, 5
push eax
mov byte [esp + 0x130], bl
call fcn.004070c0
add esp, 0xc
mov byte [esp + 0x124], 6
jmp 0x40e4ef
mov eax, dword [esp + 0x10]
push str.My_Documents
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
jne 0x40e525
push 1
push 5
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
call fcn.004057f0
push esi
push eax
lea eax, [esp + 0x14]
mov bl, 7
push eax
mov byte [esp + 0x130], bl
call fcn.004070c0
add esp, 0xc
mov byte [esp + 0x124], 8
push eax
mov ecx, esi
call fcn.00401b90
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x124], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e51c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
jmp 0x40e41a
mov eax, dword [esp + 0x10]
push str.WINDOWS
push eax
call fcn.0041cd02
add esp, 8
test eax, eax
jne 0x40e59a
push 1
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0xc]
call fcn.004057f0
push esi
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x130], 9
call fcn.004070c0
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x128], 0xa
call fcn.00401cc0
lea ecx, [esp + 0xc]
call fcn.00401330
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.00401330
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x40e5bd
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40e60b
cmp ecx, eax
jg 0x40e60b
cmp byte [edx + ecx], 0x5c
je 0x40e5bd
push 0x5c
mov ecx, esi
call fcn.00406de0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x124], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e5e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x11c]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x114]
pop ebx
call fcn.0041c22b
add esp, 0x120
ret 8
push 0x80070057
call fcn.00401000
int3