Function at 0x4d7d2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4d7d34
push ecx
push ebx
push esi
push edi
mov byte [ebp - 0x19], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405b5c
xor eax, eax
push ebp
push 0x4d8058
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp - 4]
call fcn.004bb774
mov ebx, eax
test ebx, ebx
je 0x4d802c
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 8]
call fcn.0040a4a8
cmp dword [ebp - 0x24], 0
je 0x4d802c
mov dl, 1
mov eax, dword [0x419b88]
call fcn.00404770
mov dword [ebp - 0x20], eax
xor edx, edx
mov eax, dword [ebp - 0x20]
call fcn.0041e740
mov eax, dword [ebp - 0x20]
mov byte [eax + 0x25], 1
xor eax, eax
push ebp
push 0x4d8025
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 4]
test esi, esi
jne 0x4d7dc5
call fcn.00405100
jmp 0x4d8030
lea eax, [ebp - 8]
mov edx, dword [esi + 4]
call fcn.00405774
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x18]
call fcn.004bfad0
mov eax, dword [ebp - 0xc]
call fcn.004bfd08
xor esi, esi
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0x14]
mov edx, esi
call fcn.004db56c
jmp 0x4d7e45
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004bdd24
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
push 0x20
mov eax, dword [ebp - 0x18]
call fcn.00405b6c
mov edi, eax
push edi
call sub.kernel32.dll_SetFileAttributesA
mov cl, 1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004e003c
push 0x20
push edi
call sub.kernel32.dll_SetFileAttributesA
inc esi
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0x14]
mov edx, esi
call fcn.004db56c
cmp dword [ebp - 0x10], 0
jne 0x4d7df4
xor eax, eax
call fcn.004d0bcc
cmp dword [ebx + 0xc], 0
je 0x4d7f90
mov edx, dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0041dba4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 4
jl 0x4d7f90
movzx eax, byte [ebp - 0x19]
and al, 4
cmp al, 4
jne 0x4d7f90
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
mov edx, 0x4d8074
call fcn.00405b04
jne 0x4d7f19
lea ecx, [ebp - 0x2c]
mov edx, 3
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x2c]
mov edx, 1
call fcn.0040abd0
push eax
push 0
lea ecx, [ebp - 0x34]
mov edx, 1
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
call fcn.004bfcf0
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
pop edx
call fcn.004bdd24
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
mov edx, 2
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov eax, dword [ebp - 0x3c]
xor edx, edx
pop ecx
call fcn.004d1d50
jmp 0x4d7f90
lea ecx, [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x44]
mov cl, 1
xor edx, edx
call fcn.004d1968
test al, al
je 0x4d7f90
lea ecx, [ebp - 0x48]
mov edx, 3
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x48]
xor edx, edx
call fcn.0040abd0
push eax
push 0
lea ecx, [ebp - 0x4c]
mov edx, 1
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x54]
mov edx, 2
mov eax, dword [ebp - 0x20]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov eax, dword [ebp - 0x50]
xor edx, edx
pop ecx
call fcn.004d1d50
cmp dword [ebx + 0x10], 0
je 0x4d800f
movzx eax, byte [ebp - 0x19]
and al, 2
cmp al, 2
jne 0x4d800f
mov edx, dword [ebx + 0x10]
mov eax, dword [ebp - 0x20]
call fcn.0041dba4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp eax, 3
jl 0x4d800f
lea ecx, [ebp - 0x58]
mov edx, 2
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.0040abd0
push eax
push 1
lea ecx, [ebp - 0x5c]
xor edx, edx
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x64]
mov edx, 1
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x64]
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0xc]
call fcn.004bdd24
mov eax, dword [ebp - 0x60]
xor edx, edx
pop ecx
call fcn.004d1d50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d802c
mov eax, dword [ebp - 0x20]
call fcn.004047a0
ret
mov byte [ebp - 0x1a], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d805f
lea eax, [ebp - 0x64]
mov edx, 0x11
call fcn.00405700
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405700
ret