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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x55
push 0
push 0
dec ecx
jne 0x659c50
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040452c
lea eax, [ebp - 0x16c]
mov edx, dword [0x40aed0]
call fcn.00404bec
xor eax, eax
push ebp
push 0x659fdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
call fcn.0040c3e0
test al, al
je 0x659cd8
push 0x80
mov eax, dword [ebp - 4]
call fcn.0040453c
push eax
call sub.kernel32.dll_SetFileAttributesA
lea edx, [ebp - 0x278]
mov eax, dword [ebp - 4]
call fcn.0040c780
mov eax, dword [ebp - 0x278]
push eax
lea edx, [ebp - 0x27c]
mov eax, dword [ebp - 4]
call fcn.0040c65c
mov eax, dword [ebp - 0x27c]
xor ecx, ecx
pop edx
call fcn.004fb4f4
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 4]
call fcn.004109d0
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 4]
call fcn.00404174
lea eax, [ebp - 0x271]
xor ecx, ecx
mov edx, 0x104
call fcn.00402f28
lea eax, [ebp - 0x271]
mov ecx, 0x104
mov edx, 0x104
call fcn.005035ac
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x284]
lea edx, [ebp - 0x271]
mov ecx, 0x105
call fcn.0040430c
mov eax, dword [ebp - 0x284]
mov ecx, ebx
mov edx, 1
call fcn.00404580
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 0x10]
call fcn.004109d0
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 0x10]
call fcn.00404174
lea eax, [ebp - 0x271]
xor ecx, ecx
mov edx, 0x104
call fcn.00402f28
push 0x104
lea eax, [ebp - 0x271]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28c]
lea edx, [ebp - 0x271]
mov ecx, 0x105
call fcn.0040430c
mov eax, dword [ebp - 0x28c]
mov ecx, ebx
mov edx, 1
call fcn.00404580
lea edx, [ebp - 0x290]
mov eax, dword [ebp - 0x14]
call fcn.004109d0
mov edx, dword [ebp - 0x290]
lea eax, [ebp - 0x14]
call fcn.00404174
mov eax, dword [ebp - 4]
call fcn.00404378
cmp eax, 3
jle 0x659f98
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.00404488
je 0x659f98
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.00404488
je 0x659f98
lea eax, [ebp - 0x294]
mov ecx, 0x659ff8
mov edx, dword [ebp - 4]
call fcn.004043c4
mov eax, dword [ebp - 0x294]
lea ecx, [ebp - 0x16c]
mov edx, 0x28
call fcn.0040c47c
test eax, eax
jne 0x659edd
xor eax, eax
push ebp
push 0x659e93
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x298]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 4]
call fcn.004043c4
mov eax, dword [ebp - 0x298]
lea edx, [ebp - 0xc]
call fcn.0065706c
push 0x80
mov eax, dword [ebp - 0xc]
call fcn.0040453c
push eax
call sub.kernel32.dll_SetFileAttributesA
xor ecx, ecx
mov edx, dword [ebp - 0x160]
mov eax, dword [ebp - 4]
call fcn.004fb4f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x659eb3
mov eax, dword [0x663c8c]
mov eax, dword [eax]
call fcn.004af044
lea eax, [ebp - 0x16c]
call fcn.0040c4cc
test eax, eax
je 0x659e36
lea eax, [ebp - 0x16c]
call fcn.0040c4f0
lea eax, [ebp - 0x2a0]
mov ecx, 0x659ff8
mov edx, dword [ebp - 4]
call fcn.004043c4
mov eax, dword [ebp - 0x2a0]
lea ecx, [ebp - 0x16c]
mov edx, 0x17
call fcn.0040c47c
test eax, eax
jne 0x659f98
mov eax, dword [ebp - 0x164]
and eax, 0x10
cmp eax, 0x10
jne 0x659f72
mov eax, dword [ebp - 0x160]
cmp byte [eax], 0x2e
je 0x659f72
push dword [ebp - 4]
push dword [ebp - 0x160]
push 0x65a004
lea eax, [ebp - 0x2a4]
mov edx, 3
call fcn.00404438
mov eax, dword [ebp - 0x2a4]
call fcn.00659c48
lea eax, [ebp - 0x2a8]
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp - 4]
call fcn.004043c4
mov eax, dword [ebp - 0x2a8]
call fcn.0040cf90
mov byte [ebp - 5], al
mov eax, dword [0x663c8c]
mov eax, dword [eax]
call fcn.004af044
lea eax, [ebp - 0x16c]
call fcn.0040c4cc
test eax, eax
je 0x659f0e
lea eax, [ebp - 0x16c]
call fcn.0040c4f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x659fe3
lea eax, [ebp - 0x2a8]
mov edx, 0xd
call fcn.00404100
lea eax, [ebp - 0x16c]
mov edx, dword [0x40aed0]
call fcn.00404cb8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404100
lea eax, [ebp - 4]
call fcn.004040dc
ret