Function at 0x4d7860
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x4d7868
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 0x4d7b8c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x1a], 0
mov eax, dword [ebp - 4]
call fcn.004bb754
mov ebx, eax
test ebx, ebx
je 0x4d7b60
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 8]
call fcn.0040a4a8
cmp dword [ebp - 0x24], 0
je 0x4d7b60
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 0x4d7b59
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 4]
test esi, esi
jne 0x4d78f9
call fcn.00405100
jmp 0x4d7b64
lea eax, [ebp - 8]
mov edx, dword [esi + 4]
call fcn.00405774
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x18]
call fcn.004bfa64
mov eax, dword [ebp - 0xc]
call fcn.004bfc9c
xor esi, esi
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0x14]
mov edx, esi
call fcn.004da8c0
jmp 0x4d7979
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004bdcb8
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004bdcb8
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.004def40
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.004da8c0
cmp dword [ebp - 0x10], 0
jne 0x4d7928
xor eax, eax
call fcn.004d0730
cmp dword [ebx + 0xc], 0
je 0x4d7ac4
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 0x4d7ac4
movzx eax, byte [ebp - 0x19]
and al, 4
cmp al, 4
jne 0x4d7ac4
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, 0x4d7ba8
call fcn.00405b04
jne 0x4d7a4d
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.004bfc84
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
pop edx
call fcn.004bdcb8
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.004bdcb8
mov eax, dword [ebp - 0x3c]
xor edx, edx
pop ecx
call fcn.004d18b4
jmp 0x4d7ac4
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.004d14cc
test al, al
je 0x4d7ac4
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.004bdcb8
mov eax, dword [ebp - 0x50]
xor edx, edx
pop ecx
call fcn.004d18b4
cmp dword [ebx + 0x10], 0
je 0x4d7b43
movzx eax, byte [ebp - 0x19]
and al, 2
cmp al, 2
jne 0x4d7b43
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 0x4d7b43
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.004bdcb8
mov eax, dword [ebp - 0x60]
xor edx, edx
pop ecx
call fcn.004d18b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7b60
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 0x4d7b93
lea eax, [ebp - 0x64]
mov edx, 0x11
call fcn.00405700
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405700
ret