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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2e
push 0
push 0
dec ecx
jne 0x45eeb4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f3d9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x45f304
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10d]
push eax
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea eax, [ebp - 8]
lea edx, [ebp - 0x10d]
call fcn.00405160
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405844
mov dword [ebx], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a200
test al, al
je 0x45ef33
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045ed5c
test al, al
je 0x45ef33
call fcn.004049f8
jmp 0x45f30b
lea edx, [ebp - 0x11c]
mov eax, 0x45f3f0
call fcn.0045846c
mov edx, dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
call fcn.00405844
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.00459fc0
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 8]
call fcn.004051f0
lea eax, [ebp - 0x120]
mov edx, dword [ebp - 8]
call fcn.00405844
mov eax, dword [ebp - 0x120]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.0040597c
je 0x45efca
mov dword [ebx], 2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405844
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a200
test al, al
je 0x45efca
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045ed5c
test al, al
je 0x45efca
call fcn.004049f8
jmp 0x45f30b
lea edx, [ebp - 0x12c]
mov eax, 0x45f400
call fcn.0045846c
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x128]
call fcn.00405844
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
call fcn.00459fc0
mov edx, dword [ebp - 0x124]
lea eax, [ebp - 8]
call fcn.004051f0
lea eax, [ebp - 0x130]
mov edx, dword [ebp - 8]
call fcn.00405844
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
call fcn.0040597c
je 0x45f061
mov dword [ebx], 3
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405844
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a200
test al, al
je 0x45f061
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045ed5c
test al, al
je 0x45f061
call fcn.004049f8
jmp 0x45f30b
mov dword [ebx], 4
lea eax, [ebp - 0x138]
call fcn.00461ab8
push dword [ebp - 0x138]
lea edx, [ebp - 0x13c]
mov eax, 0x45f400
call fcn.0045846c
push dword [ebp - 0x13c]
push 0x45f414
lea eax, [ebp - 0x134]
mov edx, 3
call fcn.004052e8
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 4]
call fcn.00405844
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a200
test al, al
je 0x45f0d7
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045ed5c
test al, al
je 0x45f0d7
call fcn.004049f8
jmp 0x45f30b
mov dword [ebx], 5
lea eax, [ebp - 0x144]
call fcn.00462ee0
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.0045ebac
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, 0x45f400
call fcn.0045846c
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00405230
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 4]
call fcn.00405844
mov eax, dword [ebp - 4]
push dword [eax]
push 0x45f41c
lea edx, [ebp - 0x154]
xor eax, eax
call fcn.00402e10
mov eax, dword [ebp - 0x154]
call fcn.00458a28
lea edx, [ebp - 0x150]
call fcn.00458bb4
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
call fcn.00405844
push dword [ebp - 0x14c]
push 0x45f424
mov eax, dword [ebp - 4]
mov edx, 4
call fcn.00405934
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a260
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a200
test al, al
je 0x45f1c2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045ed5c
test al, al
je 0x45f1c2
call fcn.004049f8
jmp 0x45f30b
lea eax, [ebp - 0x160]
call fcn.0045bc64
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 0x15c]
call fcn.0045ae2c
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.0045ebac
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 0x164]
mov eax, 0x45f400
call fcn.0045846c
mov edx, dword [ebp - 0x164]
pop eax
call fcn.00405230
mov edx, dword [ebp - 0x158]
mov eax, dword [ebp - 4]
call fcn.00405844
mov eax, dword [ebp - 4]
push dword [eax]
push 0x45f41c
lea edx, [ebp - 0x170]
xor eax, eax
call fcn.00402e10
mov eax, dword [ebp - 0x170]
call fcn.00458a28
lea edx, [ebp - 0x16c]
call fcn.00458bb4
mov edx, dword [ebp - 0x16c]
lea eax, [ebp - 0x168]
call fcn.00405844
push dword [ebp - 0x168]
push 0x45f424
mov eax, dword [ebp - 4]
mov edx, 4
call fcn.00405934
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a260
push 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
mov dword [ebx], 0xffffffff
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045a200
test al, al
je 0x45f2bb
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0045ed5c
test al, al
je 0x45f2bb
call fcn.004049f8
jmp 0x45f30b
mov dword [ebx], 6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f30b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
xor edx, edx
call fcn.0040597c
je 0x45f303
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00405864
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45f303
mov eax, dword [ebp - 4]
mov edx, 0x45f424
call fcn.00405870
mov eax, dword [ebp - 4]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f3e3
lea eax, [ebp - 0x170]
mov edx, 2
call fcn.00404f94
lea eax, [ebp - 0x168]
call fcn.00405660
lea eax, [ebp - 0x164]
call fcn.00404f70
lea eax, [ebp - 0x160]
mov edx, 2
call fcn.00405678
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.00404f94
lea eax, [ebp - 0x14c]
call fcn.00405660
lea eax, [ebp - 0x148]
call fcn.00404f70
lea eax, [ebp - 0x144]
call fcn.00405660
lea eax, [ebp - 0x140]
mov edx, 4
call fcn.00404f94
lea eax, [ebp - 0x130]
call fcn.00405660
lea eax, [ebp - 0x12c]
call fcn.00404f70
lea eax, [ebp - 0x128]
mov edx, 3
call fcn.00405678
lea eax, [ebp - 0x11c]
call fcn.00404f70
lea eax, [ebp - 0x118]
mov edx, 2
call fcn.00405678
lea eax, [ebp - 8]
call fcn.00404f70
ret