Function at 0x4050e0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x65aa0e
mov eax, dword fs:[0]
push eax
sub esp, 0x2e4
mov eax, dword [0x6f7d14]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x278], ecx
lea ecx, [ebp - 0x279]
call fcn.0040d790
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x278]
call fcn.0040dd10
mov ecx, dword [ebp - 0x278]
call fcn.0040dda0
mov dword [ebp - 0x28c], eax
lea ecx, [ebp - 0x290]
call fcn.0040ec90
mov byte [ebp - 4], 1
mov dword [ebp - 0x2ac], 0
cmp dword [ebp - 0x28c], 0
je 0x4051e0
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x164]
mov dword [ebp - 0x2b0], edx
mov eax, dword [ebp - 0x28c]
push eax
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2b0]
mov dword [ebp - 0x2ec], eax
mov edx, dword [ebp - 0x2ec]
mov dword [ebp - 0x2f0], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2f0]
push eax
lea ecx, [ebp - 0x290]
call fcn.0040ebc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2b4]
call fcn.0040ed10
mov ecx, dword [ebp - 0x28c]
push ecx
mov ecx, dword [ebp - 0x278]
call fcn.004058d0
mov dword [ebp - 0x2ac], eax
mov ecx, dword [ebp - 0x278]
add ecx, 0x1ec
call fcn.00402480
mov edx, dword [ebp - 0x278]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x278]
mov edx, dword [eax + 0x220]
call edx
mov ecx, dword [ebp - 0x278]
call fcn.0040b2a0
mov ecx, dword [ebp - 0x278]
add ecx, 0x80
call fcn.0040dc80
movzx eax, al
test eax, eax
je 0x4055ae
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x294], edx
cmp dword [ebp - 0x294], 0x104
jae 0x40524a
jmp 0x40524f
call fcn.0062fd7e
mov eax, dword [ebp - 0x294]
mov byte [ebp + eax - 0x114], 0
mov ecx, dword [ebp - 0x278]
cmp dword [ecx + 0xb4], 0
je 0x4054cd
mov edx, dword [ebp - 0x278]
cmp dword [edx + 0x1b4], 0
je 0x4054cd
push 0x14
call fcn.004eab18
add esp, 4
mov dword [ebp - 0x298], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x298], 0
je 0x4052b3
mov ecx, dword [ebp - 0x298]
call fcn.00401e70
mov dword [ebp - 0x29c], eax
jmp 0x4052bd
mov dword [ebp - 0x29c], 0
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x2b8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x2b8]
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x284]
mov byte [edx + 0x10], 0
mov dword [ebp - 0x2a4], 0
mov dword [ebp - 0x2a0], 0
mov dword [ebp - 0x280], 0
lea eax, [ebp - 0x280]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jl 0x405469
push 0x160
push 0
lea ecx, [ebp - 0x274]
push ecx
call fcn.00633f10
add esp, 0xc
push 0x208
push 0x160
lea edx, [ebp - 0x274]
push edx
push 0
mov eax, dword [ebp - 0x280]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x405369
lea ecx, [ebp - 0x268]
push ecx
mov ecx, dword [ebp - 0x284]
add ecx, 8
call fcn.0040db70
lea edx, [ebp - 0x114]
push edx
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4053b2
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x284]
add ecx, 4
call fcn.0040db70
mov ecx, dword [ebp - 0x284]
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x278]
add ecx, 0x8c
call fcn.0040ebc0
mov edx, dword [ebp - 0x278]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1d0]
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x280]
push edx
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2bc]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1dc]
mov dword [ebp - 0x2c0], edx
mov eax, dword [ebp - 0x280]
push eax
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2c0]
mov dword [ebp - 0x2a0], eax
mov ecx, dword [ebp - 0x278]
mov edx, dword [ecx + 0x1b4]
mov dword [ebp - 0x2c4], edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 0x1b4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x2c8], eax
mov ecx, dword [ebp - 0x280]
push ecx
mov edx, dword [ebp - 0x2c4]
push edx
call dword [ebp - 0x2c8]
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 0x1b4]
mov edx, dword [ebp - 0x278]
mov eax, dword [edx + 0x1b4]
mov ecx, dword [ecx]
push eax
mov edx, dword [ecx + 8]
call edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1f0]
mov dword [ebp - 0x2cc], edx
push 0
mov eax, dword [ebp - 0x2a0]
push eax
mov ecx, dword [ebp - 0x2a4]
push ecx
push 0
mov edx, dword [ebp - 0x284]
push edx
push 0xffff0000
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2cc]
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0x94], eax
mov edx, dword [ebp - 0x278]
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 0x94]
mov dword [edx + 0x9c], ecx
jmp 0x4054dd
mov edx, dword [ebp - 0x278]
mov dword [edx + 0x94], 0xffff0000
mov eax, dword [ebp - 0x278]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x278]
mov eax, dword [edx + 0x240]
call eax
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x288], ecx
mov edx, dword [ebp - 0x288]
add edx, 1
mov dword [ebp - 0x2d0], edx
mov eax, dword [ebp - 0x288]
mov cl, byte [eax]
mov byte [ebp - 0x27a], cl
add dword [ebp - 0x288], 1
cmp byte [ebp - 0x27a], 0
jne 0x40550e
mov edx, dword [ebp - 0x288]
sub edx, dword [ebp - 0x2d0]
mov dword [ebp - 0x2d4], edx
je 0x4055a9
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c0]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 0x94]
mov dword [ebp - 0x2d8], ecx
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x2a8]
call fcn.0040d7f0
mov byte [ebp - 4], 4
push 0
push 0
mov eax, dword [ebp - 0x2d8]
push eax
lea ecx, [ebp - 0x2a8]
push ecx
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2dc]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2a8]
call fcn.0040ed10
jmp 0x40569c
mov edx, dword [ebp - 0x278]
add edx, 0x80
push edx
call fcn.004077d0
add esp, 4
test eax, eax
je 0x40565e
mov eax, dword [ebp - 0x278]
cmp dword [eax + 0x1c4], 0
je 0x405622
mov ecx, dword [ebp - 0x278]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1cc]
mov dword [ebp - 0x2e0], eax
mov ecx, dword [ebp - 0x278]
add ecx, 0x80
push ecx
mov edx, dword [ebp - 0x278]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2e0]
mov ecx, dword [ebp - 0x278]
mov dword [ecx + 0xac], eax
jmp 0x40565c
mov edx, dword [ebp - 0x278]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c8]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x278]
add edx, 0x80
push edx
mov eax, dword [ebp - 0x278]
mov ecx, dword [eax + 0x94]
push ecx
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2e4]
jmp 0x40569c
mov edx, dword [ebp - 0x278]
mov eax, dword [edx]
mov ecx, dword [eax + 0x1c0]
mov dword [ebp - 0x2e8], ecx
push 1
push 0
mov edx, dword [ebp - 0x278]
mov eax, dword [edx + 0x94]
push eax
mov ecx, dword [ebp - 0x278]
add ecx, 0x80
push ecx
mov ecx, dword [ebp - 0x278]
call dword [ebp - 0x2e8]
cmp dword [ebp - 0x28c], 0
je 0x4056be
mov edx, dword [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x290]
push eax
mov ecx, dword [ebp - 0x278]
call fcn.00403260
push 1
mov ecx, dword [ebp - 0x278]
call fcn.0040dd10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x290]
call fcn.0040ed10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x279]
call fcn.0040d5e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062fc3e
mov esp, ebp
pop ebp
ret