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

Disassembly:
push 0xffffffffffffffff
push 0x435ae9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
mov eax, dword [0x4472e0]
push ebx
push esi
mov ebx, ecx
push 0x437c6b
lea ecx, [esp + 0x14]
mov dword [esp + 0x11c], eax
call fcn.00404850
mov esi, dword [esp + 0x12c]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov dword [esp + 0x124], 0
jle 0x40c3d9
push 0x5c
push eax
call fcn.0041a4ed
add esp, 8
test eax, eax
je 0x40c3d9
sub eax, dword [esi]
push edi
mov edi, eax
test edi, edi
jle 0x40c3d8
push edi
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.00404190
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x12c], 1
call fcn.00401b80
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 0x40c38d
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.0040b3b0
push eax
mov ecx, esi
mov byte [esp + 0x12c], 2
call fcn.00401b80
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 0x40c3d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, dword [esp + 0x10]
push 0x437c6b
push eax
call fcn.0041a6e2
add esp, 8
test eax, eax
je 0x40c5ea
mov ecx, dword [esp + 0x10]
push 0x43a164
push ecx
call fcn.0041a6e2
add esp, 8
test eax, eax
jne 0x40c495
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.0040b850
push esi
push eax
lea eax, [esp + 0x10]
mov bl, 3
push eax
mov byte [esp + 0x130], bl
call fcn.0040b410
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x128], 4
call fcn.00401b80
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 0x40c466
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 0x40c5ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40c5ea
mov eax, dword [esp + 0x10]
push str.system32
push eax
call fcn.0041a6e2
add esp, 8
test eax, eax
jne 0x40c4eb
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.00404850
push esi
push eax
lea eax, [esp + 0x14]
mov bl, 5
push eax
mov byte [esp + 0x130], bl
call fcn.0040b410
add esp, 0xc
mov byte [esp + 0x124], 6
jmp 0x40c53f
mov eax, dword [esp + 0x10]
push str.My_Documents
push eax
call fcn.0041a6e2
add esp, 8
test eax, eax
jne 0x40c575
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.00404850
push esi
push eax
lea eax, [esp + 0x14]
mov bl, 7
push eax
mov byte [esp + 0x130], bl
call fcn.0040b410
add esp, 0xc
mov byte [esp + 0x124], 8
push eax
mov ecx, esi
call fcn.00401b80
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 0x40c56c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
jmp 0x40c46a
mov eax, dword [esp + 0x10]
push str.WINDOWS
push eax
call fcn.0041a6e2
add esp, 8
test eax, eax
jne 0x40c5ea
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.00404850
push esi
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x130], 9
call fcn.0040b410
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0x128], 0xa
call fcn.00401cb0
lea ecx, [esp + 0xc]
call fcn.00401370
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call fcn.00401370
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x40c60d
lea ecx, [eax - 1]
test ecx, ecx
jl 0x40c65b
cmp ecx, eax
jg 0x40c65b
cmp byte [edx + ecx], 0x5c
je 0x40c60d
push 0x5c
mov ecx, esi
call fcn.0040b330
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 0x40c636
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.00419e6b
add esp, 0x120
ret 8
push 0x80070057
call fcn.00401010
int3