Function at 0x4e99e4
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 0x4e99ec
push ebx
push esi
mov ebx, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4e9dad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x53f320], 0x811
lea eax, [ebp - 0x14]
mov edx, dword [0x54962c]
call fcn.00404650
lea edx, [ebp - 0x18]
mov eax, 0xff
call fcn.004ab8e8
mov ecx, dword [ebp - 0x18]
mov eax, 0x549964
mov edx, dword [0x53f434]
call fcn.004048d8
lea edx, [ebp - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.004ab8e8
mov ecx, dword [ebp - 0x1c]
mov eax, 0x549968
mov edx, dword [0x53f434]
call fcn.004048d8
cmp dword [0x53fbac], 0
jne 0x4e9be9
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbac], eax
lea edx, [ebp - 0x24]
mov eax, 0x64
call fcn.004ab8e8
push dword [ebp - 0x24]
push 0x4e9dc4
push 0x4e9dd0
push dword [ebp - 0x14]
push 0x4e9dc4
lea edx, [ebp - 0x28]
mov eax, 0x101
call fcn.004ab8e8
push dword [ebp - 0x28]
push 0x4e9dc4
lea edx, [ebp - 0x2c]
mov eax, 0x102
call fcn.004ab8e8
push dword [ebp - 0x2c]
push 0x4e9dc4
lea edx, [ebp - 0x30]
mov eax, 0x103
call fcn.004ab8e8
push dword [ebp - 0x30]
push dword [0x54956c]
lea edx, [ebp - 0x34]
mov eax, 0x104
call fcn.004ab8e8
push dword [ebp - 0x34]
push 0x4e9dc4
lea eax, [ebp - 0x20]
mov edx, 0xd
call fcn.0040494c
mov edx, dword [ebp - 0x20]
mov eax, dword [0x53fbac]
call fcn.00470df0
xor eax, eax
mov dword [0x53fbb0], eax
cmp dword [0x54971c], 0
je 0x4e9bd8
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbb0], 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 [0x540c9c]
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 [0x54971c]
call fcn.00404e90
mov eax, dword [ebp - 0x44]
xor ecx, ecx
pop edx
call fcn.004d9aa4
push 0xa
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
call fcn.00404e90
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x53fbb0]
push eax
call fcn.0046df20
test al, al
je 0x4e9bce
mov eax, dword [ebp - 0x10]
call fcn.00409988
jmp 0x4e9bd8
mov eax, 0x53fbb0
call fcn.0040e2f4
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbb8], eax
test bl, bl
jne 0x4e9bf6
cmp dword [0x53fbb0], 0
jne 0x4e9c1a
lea eax, [ebp - 8]
mov edx, dword [0x549964]
call fcn.00404650
mov esi, dword [0x53fbac]
lea eax, [ebp - 0xc]
mov edx, dword [0x549968]
call fcn.00404650
jmp 0x4e9c3c
lea eax, [ebp - 8]
mov edx, dword [0x549968]
call fcn.00404650
mov esi, dword [0x53fbb0]
lea eax, [ebp - 0xc]
mov edx, dword [0x549964]
call fcn.00404650
mov eax, dword [ebp - 0xc]
call fcn.0046dd44
test al, al
je 0x4e9c54
mov eax, dword [ebp - 0xc]
call fcn.00409988
mov bl, 1
jmp 0x4e9c56
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4e9cda
cmp byte [ebp - 1], 0
je 0x4e9cd1
cmp dword [0x53fbb4], 0
je 0x4e9c89
mov eax, dword [0x53fbb4]
call fcn.004037ac
xor eax, eax
mov dword [0x53fbb4], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x4c]
push eax
push esi
call fcn.0046de68
test al, al
je 0x4e9d7e
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 [0x414dcc]
call fcn.00419bcc
mov dword [0x53fbb4], eax
jmp 0x4e9d7e
test bl, bl
jne 0x4e9c6f
jmp 0x4e9d7e
test al, 6
je 0x4e9cf3
push 0x20
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4e9c6f
push 0xa
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [0x53fbb8]
push eax
call fcn.0046df20
test al, al
je 0x4e9c6f
mov eax, dword [0x53fbb8]
call fcn.004196f0
push edx
push eax
mov eax, esi
call fcn.004196f0
cmp edx, dword [esp + 4]
jne 0x4e9d33
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e9c6f
mov eax, dword [0x53fbb8]
call fcn.004196f0
mov ecx, eax
mov eax, dword [0x53fbb8]
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
call fcn.00471e90
test eax, eax
jne 0x4e9c6f
cmp dword [0x53fbb4], 0
jne 0x4e9d7e
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x414dcc]
call fcn.00419bcc
mov dword [0x53fbb4], eax
xor eax, eax
mov dword [0x53f320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e9db4
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00404d08
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.004045dc
ret