Function at 0x4e78e0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x4e78e8
push ebx
push esi
mov ebx, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4e7ca9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53d314], 0x811
lea eax, [ebp - 0x14]
mov edx, dword [0x547604]
call fcn.00404650
lea edx, [ebp - 0x18]
mov eax, 0xff
call fcn.004ab720
mov ecx, dword [ebp - 0x18]
mov eax, 0x547908
mov edx, dword [0x53d420]
call fcn.004048d8
lea edx, [ebp - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.004ab720
mov ecx, dword [ebp - 0x1c]
mov eax, 0x54790c
mov edx, dword [0x53d420]
call fcn.004048d8
cmp dword [0x53db84], 0
jne 0x4e7ae5
mov dl, 1
mov eax, dword [0x4707e0]
call fcn.0040377c
mov dword [0x53db84], eax
lea edx, [ebp - 0x24]
mov eax, 0x64
call fcn.004ab720
push dword [ebp - 0x24]
push 0x4e7cc0
push 0x4e7ccc
push dword [ebp - 0x14]
push 0x4e7cc0
lea edx, [ebp - 0x28]
mov eax, 0x101
call fcn.004ab720
push dword [ebp - 0x28]
push 0x4e7cc0
lea edx, [ebp - 0x2c]
mov eax, 0x102
call fcn.004ab720
push dword [ebp - 0x2c]
push 0x4e7cc0
lea edx, [ebp - 0x30]
mov eax, 0x103
call fcn.004ab720
push dword [ebp - 0x30]
push dword [0x547564]
lea edx, [ebp - 0x34]
mov eax, 0x104
call fcn.004ab720
push dword [ebp - 0x34]
push 0x4e7cc0
lea eax, [ebp - 0x20]
mov edx, 0xd
call fcn.0040494c
mov edx, dword [ebp - 0x20]
mov eax, dword [0x53db84]
call fcn.00470dcc
xor eax, eax
mov dword [0x53db88], eax
cmp dword [0x5476dc], 0
je 0x4e7ad4
mov dl, 1
mov eax, dword [0x4707e0]
call fcn.0040377c
mov dword [0x53db88], eax
mov eax, 0x7fffffff
call fcn.004030b8
lea ecx, [ebp - 0x38]
mov edx, 8
call fcn.00409454
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x53ec70]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.004048d8
mov edx, 0x20
mov eax, dword [ebp - 0x10]
call fcn.0040986c
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x10]
call fcn.00404e90
mov eax, dword [ebp - 0x3c]
push eax
push 0
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x14]
call fcn.00404e90
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
mov edx, dword [0x5476dc]
call fcn.00404e90
mov eax, dword [ebp - 0x44]
xor ecx, ecx
pop edx
call fcn.004d8f90
push 0xa
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
call fcn.00404e90
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x53db88]
push eax
call fcn.0046defc
test al, al
je 0x4e7aca
mov eax, dword [ebp - 0x10]
call fcn.00409988
jmp 0x4e7ad4
mov eax, 0x53db88
call fcn.0040e2d0
mov dl, 1
mov eax, dword [0x4707e0]
call fcn.0040377c
mov dword [0x53db90], eax
test bl, bl
jne 0x4e7af2
cmp dword [0x53db88], 0
jne 0x4e7b16
lea eax, [ebp - 8]
mov edx, dword [0x547908]
call fcn.00404650
mov esi, dword [0x53db84]
lea eax, [ebp - 0xc]
mov edx, dword [0x54790c]
call fcn.00404650
jmp 0x4e7b38
lea eax, [ebp - 8]
mov edx, dword [0x54790c]
call fcn.00404650
mov esi, dword [0x53db88]
lea eax, [ebp - 0xc]
mov edx, dword [0x547908]
call fcn.00404650
mov eax, dword [ebp - 0xc]
call fcn.0046dd20
test al, al
je 0x4e7b50
mov eax, dword [ebp - 0xc]
call fcn.00409988
mov bl, 1
jmp 0x4e7b52
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4e7bd6
cmp byte [ebp - 1], 0
je 0x4e7bcd
cmp dword [0x53db8c], 0
je 0x4e7b85
mov eax, dword [0x53db8c]
call fcn.004037ac
xor eax, eax
mov dword [0x53db8c], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x4c]
push eax
push esi
call fcn.0046de44
test al, al
je 0x4e7c7a
push 0x20
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x414da8]
call fcn.00419ba8
mov dword [0x53db8c], eax
jmp 0x4e7c7a
test bl, bl
jne 0x4e7b6b
jmp 0x4e7c7a
test al, 6
je 0x4e7bef
push 0x20
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4e7b6b
push 0xa
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [0x53db90]
push eax
call fcn.0046defc
test al, al
je 0x4e7b6b
mov eax, dword [0x53db90]
call fcn.004196cc
push edx
push eax
mov eax, esi
call fcn.004196cc
cmp edx, dword [esp + 4]
jne 0x4e7c2f
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e7b6b
mov eax, dword [0x53db90]
call fcn.004196cc
mov ecx, eax
mov eax, dword [0x53db90]
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
call fcn.00471dbc
test eax, eax
jne 0x4e7b6b
cmp dword [0x53db8c], 0
jne 0x4e7c7a
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x414da8]
call fcn.00419ba8
mov dword [0x53db8c], eax
xor eax, eax
mov dword [0x53d314], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7cb0
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00404d08
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.004045dc
ret