Function at 0x4028d8
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd18
push ebx
mov eax, 0x5be9dc
call fcn.005ae2c8
mov dword [ebp - 0xc4], 3
lea edx, [ebp + 0x10]
lea eax, [ebp + 0x10]
call fcn.005bbcf4
inc dword [ebp - 0xc4]
mov word [ebp - 0xd0], 0xc
lea edx, [ebp + 0xc]
lea eax, [ebp + 0xc]
call fcn.005bbcf4
inc dword [ebp - 0xc4]
lea edx, [ebp + 8]
lea eax, [ebp + 8]
call fcn.005bbcf4
inc dword [ebp - 0xc4]
mov word [ebp - 0xd0], 0x18
mov edx, 0x5be1ef
lea eax, [ebp - 4]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 4]
lea eax, [ebp + 8]
call fcn.005bbf24
push eax
dec dword [ebp - 0xc4]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x4031cc
push 1
push 5
lea eax, [ebp - 0x2e8]
push eax
push 0
call sub.SHELL32.DLL_SHGetSpecialFolderPathW
mov word [ebp - 0xd0], 0x24
mov edx, 0x5be1f0
lea eax, [ebp - 0xc]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 8]
call fcn.005bbde0
inc dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
inc dword [ebp - 0xc4]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x10]
xor edx, edx
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x14]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
call fcn.005bbe94
lea eax, [ebp - 0x14]
mov eax, dword [eax]
mov dl, 1
call fcn.00468ce4
xor ecx, ecx
mov cl, al
cmp ecx, 1
sbb eax, eax
neg eax
push eax
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x402b69
mov word [ebp - 0xd0], 0x30
mov edx, 0x5be1fb
lea eax, [ebp - 0x1c]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x18]
call fcn.005bbde0
inc dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x20]
inc dword [ebp - 0xc4]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x20]
xor edx, edx
mov dword [ebp - 0x24], edx
lea ecx, [ebp - 0x24]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
call fcn.005bbe94
lea eax, [ebp - 0x24]
mov eax, dword [eax]
call fcn.00468db0
xor edx, edx
mov dl, al
cmp edx, 1
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x402b69
dec dword [ebp - 0xc4]
lea eax, [ebp + 8]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.005bbe44
mov ecx, dword [ebp - 0xe0]
mov dword fs:[0], ecx
jmp 0x403334
push 0x80
mov word [ebp - 0xd0], 0x3c
mov edx, 0x5be206
lea eax, [ebp - 0x2c]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x28]
call fcn.005bbde0
inc dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x30]
inc dword [ebp - 0xc4]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x34]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
call fcn.005bbe94
lea eax, [ebp - 0x34]
push eax
mov edx, 0x5be211
lea eax, [ebp - 0x38]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 0x38]
xor eax, eax
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
inc dword [ebp - 0xc4]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x3c]
xor edx, edx
mov dword [ebp - 0x40], edx
lea ecx, [ebp - 0x40]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0x10]
call fcn.005bbe94
cmp dword [ebp - 0x40], 0
je 0x402c21
mov eax, dword [ebp - 0x40]
jmp 0x402c26
mov eax, 0x5be214
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005bbe44
mov word [ebp - 0xd0], 0x54
mov edx, 0x5be216
lea eax, [ebp - 0x48]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x44]
call fcn.005bbde0
inc dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x4c]
inc dword [ebp - 0xc4]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x4c]
xor edx, edx
mov dword [ebp - 0x50], edx
lea ecx, [ebp - 0x50]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
call fcn.005bbe94
lea eax, [ebp - 0x50]
push eax
mov edx, 0x5be221
lea eax, [ebp - 0x54]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 0x54]
xor eax, eax
mov dword [ebp - 0x58], eax
lea ecx, [ebp - 0x58]
inc dword [ebp - 0xc4]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x5c], edx
lea ecx, [ebp - 0x5c]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0x10]
call fcn.005bbe94
lea ecx, [ebp - 0x5c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x44831c]
call fcn.0040333c
mov dword [ebp - 0xe4], eax
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.005bbe44
mov word [ebp - 0xd0], 0x48
mov edx, 0x5be241
lea eax, [ebp - 0x68]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
push dword [eax]
mov edx, 0x5be22c
lea eax, [ebp - 0x64]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
push dword [eax]
mov word [ebp - 0xd0], 0x60
mov edx, 0x5be223
lea eax, [ebp - 0x60]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
mov edx, dword [eax]
mov eax, dword [ebp - 0xe4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 8]
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x60]
mov edx, 2
call fcn.005bbe44
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x70], ecx
cmp dword [ebp - 0x70], 0
je 0x402ec1
mov eax, dword [ebp - 0x70]
mov edx, dword [eax]
mov dword [ebp - 0x6c], edx
mov word [ebp - 0xd0], 0x84
mov edx, 3
mov eax, dword [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xd0], 0x6c
mov word [ebp - 0xd0], 0x90
mov edx, 0x5be243
lea eax, [ebp - 0x74]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 0x74]
lea eax, [ebp + 0xc]
call fcn.005bbf18
push eax
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.005bbe44
pop ecx
test cl, cl
je 0x4031c3
mov word [ebp - 0xd0], 0x9c
mov edx, 0x5be24c
lea eax, [ebp - 0x7c]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x2e8]
lea eax, [ebp - 0x78]
call fcn.005bbde0
inc dword [ebp - 0xc4]
xor ecx, ecx
mov dword [ebp - 0x80], ecx
lea ecx, [ebp - 0x80]
inc dword [ebp - 0xc4]
pop edx
call fcn.005bbe94
lea eax, [ebp - 0x80]
xor edx, edx
mov dword [ebp - 0x84], edx
lea ecx, [ebp - 0x84]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
call fcn.005bbe94
lea eax, [ebp - 0x84]
push eax
mov edx, 0x5be257
lea eax, [ebp - 0x88]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 0x88]
xor eax, eax
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x8c]
inc dword [ebp - 0xc4]
pop eax
call fcn.005bbe94
lea eax, [ebp - 0x8c]
xor edx, edx
mov dword [ebp - 0x90], edx
lea ecx, [ebp - 0x90]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
call fcn.005bbe94
lea eax, [ebp - 0x90]
push eax
mov edx, 0x5be259
lea eax, [ebp - 0x94]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
lea edx, [ebp - 0x94]
xor eax, eax
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
inc dword [ebp - 0xc4]
pop eax
call fcn.005bbe94
lea ecx, [ebp - 0x98]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x44831c]
call fcn.0040333c
mov dword [ebp - 0xe4], eax
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x80]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.005bbe44
mov edx, 0x5be27d
lea eax, [ebp - 0xa4]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
push dword [eax]
mov edx, 0x5be266
lea eax, [ebp - 0xa0]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
push dword [eax]
mov word [ebp - 0xd0], 0xa8
mov edx, 0x5be25e
lea eax, [ebp - 0x9c]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
mov edx, dword [eax]
mov eax, dword [ebp - 0xe4]
pop ecx
mov ebx, dword [eax]
call dword [ebx + 8]
dec dword [ebp - 0xc4]
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.005bbe44
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0xac], ecx
cmp dword [ebp - 0xac], 0
je 0x4031c3
mov eax, dword [ebp - 0xac]
mov edx, dword [eax]
mov dword [ebp - 0xa8], edx
mov word [ebp - 0xd0], 0xcc
mov edx, 3
mov eax, dword [ebp - 0xac]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xd0], 0xb4
mov word [ebp - 0xd0], 0xc
mov dl, 1
mov eax, dword [0x44228c]
call fcn.00444320
mov dword [ebp - 0xe8], eax
mov word [ebp - 0xd0], 0xc
cmp dword [ebp - 0xe8], 0
je 0x4032a9
mov edx, SysStringLen
mov eax, dword [ebp - 0xe8]
call fcn.00444408
mov word [ebp - 0xd0], 0xd8
xor ecx, ecx
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0xb0]
inc dword [ebp - 0xc4]
lea edx, [ebp + 0xc]
mov eax, 0x5be306
call fcn.005bc278
lea edx, [ebp - 0xb0]
mov edx, dword [edx]
mov cl, 1
mov eax, dword [ebp - 0xe8]
call fcn.00444550
dec dword [ebp - 0xc4]
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.005bbe44
mov word [ebp - 0xd0], 0xe4
mov edx, 0x5be323
lea eax, [ebp - 0xb4]
call fcn.005bbcb4
inc dword [ebp - 0xc4]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0xe8]
call fcn.00444e64
dec dword [ebp - 0xc4]
lea eax, [ebp - 0xb4]
mov edx, 2
call fcn.005bbe44
mov eax, dword [ebp - 0xe8]
call fcn.004443d8
mov edx, dword [ebp - 0xe8]
mov dword [ebp - 0xbc], edx
cmp dword [ebp - 0xbc], 0
je 0x4032ee
mov ecx, dword [ebp - 0xbc]
mov eax, dword [ecx]
mov dword [ebp - 0xb8], eax
mov word [ebp - 0xd0], 0x108
mov edx, 3
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0xd0], 0xf0
dec dword [ebp - 0xc4]
lea eax, [ebp + 8]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp + 0xc]
mov edx, 2
call fcn.005bbe44
dec dword [ebp - 0xc4]
lea eax, [ebp + 0x10]
mov edx, 2
call fcn.005bbe44
mov ecx, dword [ebp - 0xe0]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret