Function at 0x40cb60
Capabilities:
Get common file path
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4c380d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4ea6c4]
xor eax, esp
mov dword [esp + 0x2c0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ea6c4]
xor eax, esp
push eax
lea eax, [esp + 0x2d8]
mov dword fs:[0], eax
mov esi, 0x4cf578
mov dword [esp + 0x1c], esi
xor ebp, ebp
jmp 0x40cbb0
push 0x206
lea eax, [esp + 0xd2]
push ebp
push eax
mov word [esp + 0xd8], bp
call fcn.004ae6c0
mov eax, dword [esi]
add esp, 0xc
cmp eax, 0xff
mov dword [esp + 0x18], eax
jge 0x40cc6f
push ebp
push eax
lea ecx, [esp + 0xd4]
push ecx
push ebp
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40ce3a
lea eax, [esp + 0xcc]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40cc13
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd0]
push edx
lea esi, [esp + 0x2c]
call fcn.00401700
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2e4], ebp
call fcn.00414bc0
push 0xffffffffffffffff
push ebp
mov ecx, esi
push ecx
call fcn.004017d0
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x3c], 8
jb 0x40ce3a
mov edx, dword [esp + 0x28]
jmp 0x40ce31
sub eax, 0x101
je 0x40cd90
sub eax, 1
je 0x40ccef
sub eax, 1
jne 0x40cf21
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x28
call fcn.00414bc0
push eax
lea esi, [esp + 0xb4]
call fcn.0040ada0
add esp, 4
mov esi, eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2e4], 5
call fcn.00414bc0
push 0xffffffffffffffff
push ebp
push esi
call fcn.004017d0
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0xc8], 8
jb 0x40ce3a
mov edx, dword [esp + 0xb4]
jmp 0x40ce31
push 0xb
mov edi, 7
push str._HOMEDRIVE_
lea esi, [esp + 0x2c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x40], ebp
mov word [esp + 0x30], bp
call fcn.00401700
mov ecx, esi
lea esi, [esp + 0x78]
mov dword [esp + 0x2e0], 3
call fcn.0040c3f0
mov esi, eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2e4], 4
call fcn.00414bc0
push 0xffffffffffffffff
push ebp
push esi
call fcn.004017d0
mov esi, 8
cmp dword [esp + 0x90], esi
jb 0x40cd5f
mov ecx, dword [esp + 0x7c]
push ecx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x3c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], ebp
mov word [esp + 0x7c], bp
jb 0x40ce3a
mov edx, dword [esp + 0x28]
jmp 0x40ce31
push 0x11
mov edi, 7
push str._ALLUSERSPROFILE_
lea esi, [esp + 0x48]
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebp
mov word [esp + 0x4c], bp
call fcn.00401700
mov ecx, esi
lea esi, [esp + 0x94]
mov dword [esp + 0x2e0], 1
call fcn.0040c3f0
mov esi, eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x2e4], 2
call fcn.00414bc0
push 0xffffffffffffffff
push ebp
push esi
call fcn.004017d0
mov esi, 8
cmp dword [esp + 0xac], esi
jb 0x40ce06
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x58], esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xa8], ebp
mov word [esp + 0x98], bp
jb 0x40ce3a
mov edx, dword [esp + 0x44]
push edx
call fcn.004abbe4
add esp, 4
lea eax, [esp + 0x18]
push eax
call fcn.00414bc0
mov edi, eax
cmp dword [edi + 0x14], 2
jb 0x40cee6
cmp dword [edi + 0x18], 8
lea esi, [edi + 4]
jb 0x40ce5d
mov eax, dword [esi]
jmp 0x40ce5f
mov eax, esi
cmp word [eax], 0x22
jne 0x40cee6
mov eax, dword [edi + 0x14]
lea ebx, [eax - 1]
cmp ebx, eax
jbe 0x40ce78
call fcn.004ac22f
cmp dword [edi + 0x18], 8
jb 0x40ce80
mov esi, dword [esi]
cmp word [esi + ebx*2], 0x22
jne 0x40cee6
mov eax, dword [edi + 0x14]
lea ecx, [esp + 0x5c]
push edi
push ecx
add eax, 0xfffffffe
mov ecx, 1
call fcn.004070f0
add esp, 8
push 0xffffffffffffffff
push ebp
push eax
mov eax, edi
mov dword [esp + 0x2ec], 6
call fcn.004017d0
mov dword [esp + 0x2e0], 0xffffffff
cmp dword [esp + 0x74], 8
jb 0x40ced5
mov edx, dword [esp + 0x60]
push edx
call fcn.004abbe4
add esp, 4
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], bp
push 0x4cbb70
mov eax, edi
call fcn.00406f40
add esp, 4
push 0x5c
push 0x5c
call fcn.00406e70
push 0x5c
push 0x2f
call fcn.00406e70
mov esi, dword [esp + 0x2c]
add esi, 4
add esp, 0x10
cmp esi, 0x4cf620
mov dword [esp + 0x1c], esi
jl 0x40cbb0
mov ecx, dword [esp + 0x2d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c0]
xor ecx, esp
call fcn.004abc64
add esp, 0x2d0
ret