Function at 0x4696b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x6aae14]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x72c8c8
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004e24e0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push str..tx_
lea edx, [ebp - 0x20c]
push edx
call ebx
lea eax, [ebp - 0x554]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov dword [ebp - 0x558], 1
call fcn.004e0820
mov esi, eax
add esp, 8
mov dword [ebp - 0x55c], esi
cmp esi, 0xffffffff
je 0x4699d5
mov edi, edi
cmp dword [ebp - 0x558], 0
je 0x4699ce
test byte [ebp - 0x554], 0x10
jne 0x4699b3
push 0x72c8c8
lea edx, [ebp - 0x20c]
push edx
call edi
lea eax, [ebp - 0x20c]
push eax
call fcn.004e24e0
add esp, 4
lea ecx, [ebp - 0x528]
push ecx
lea edx, [ebp - 0x20c]
push edx
call ebx
test byte [ebp - 0x554], 7
je 0x4697c7
xor esi, esi
mov dword [ebp - 0x558], esi
call fcn.004d96c0
test eax, eax
je 0x4697a2
lea eax, [ebp - 0x558]
push eax
call fcn.004f77e0
add esp, 4
mov esi, eax
push 0x80
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test esi, esi
je 0x4697c7
mov edx, dword [ebp - 0x558]
push edx
call fcn.004f7860
add esp, 4
cmp dword [ebp - 0x538], 0
ja 0x4697d9
cmp dword [ebp - 0x534], 0
jne 0x4697e8
lea eax, [ebp - 0x20c]
push eax
call fcn.004e0670
add esp, 4
lea ecx, [ebp - 0x528]
push 0x2e
push ecx
call fcn.004dad90
add esp, 8
cmp eax, 2
je 0x469855
push 0x72c7c0
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x558], 0
call edi
lea eax, [ebp - 0x108]
push eax
call fcn.004e24e0
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.004e1490
add esp, 0xc
push eax
lea edx, [ebp - 0x108]
push edx
call ebx
lea eax, [ebp - 0x108]
lea esi, [ebp - 0x108]
push eax
dec esi
call fcn.004dd6c0
jmp 0x469921
lea ecx, [ebp - 0x528]
push ecx
lea edx, [ebp - 0x310]
push edx
mov dword [ebp - 0x558], 1
call edi
lea eax, [ebp - 0x310]
push 0x2e
push eax
call fcn.005e0940
mov esi, eax
add esp, 8
lea ebx, [esi + 1]
push ebx
lea ecx, [ebp - 0x414]
push ecx
call edi
lea edx, [ebp - 0x414]
push 0x2e
push edx
call fcn.005e0940
add esp, 8
test eax, eax
je 0x4698a7
mov byte [eax], 0
push 0x2e
push ebx
call fcn.005e0940
add esp, 8
push eax
push esi
call edi
push 0x6af4b8
lea eax, [ebp - 0x108]
push eax
call edi
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e24e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x108]
push eax
call esi
lea ecx, [ebp - 0x108]
push ecx
call fcn.004e24e0
add esp, 4
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x108]
push eax
call esi
lea ecx, [ebp - 0x108]
lea esi, [ebp - 0x108]
push ecx
dec esi
call fcn.004dd6c0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 4
push 0
lea edx, [ebp - 0x108]
mov byte [eax + esi], 0x54
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.004edd70
add esp, 0xc
cmp dword [ebp - 0x558], 1
jne 0x46999e
push 0x72c7c0
lea ecx, [ebp - 0x108]
push ecx
call edi
lea edx, [ebp - 0x108]
push edx
call fcn.004e24e0
add esp, 4
lea eax, [ebp - 0x310]
push eax
lea ecx, [ebp - 0x108]
push ecx
call ebx
lea edx, [ebp - 0x108]
push edx
call fcn.004dd6c0
mov byte [eax + esi], 0x54
push 0
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.004edd70
add esp, 0x10
lea edx, [ebp - 0x20c]
push edx
call fcn.004e0670
mov esi, dword [ebp - 0x55c]
add esp, 4
lea eax, [ebp - 0x554]
push eax
push esi
call fcn.004d5ad0
add esp, 8
mov dword [ebp - 0x558], eax
jmp 0x469730
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret