Function at 0x4e99c0
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 0x4e99c8
push ebx
push esi
mov ebx, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4e9d89
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.004ab8a8
mov ecx, dword [ebp - 0x18]
mov eax, 0x549960
mov edx, dword [0x53f434]
call fcn.004048d8
lea edx, [ebp - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.004ab8a8
mov ecx, dword [ebp - 0x1c]
mov eax, 0x549964
mov edx, dword [0x53f434]
call fcn.004048d8
cmp dword [0x53fbac], 0
jne 0x4e9bc5
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbac], eax
lea edx, [ebp - 0x24]
mov eax, 0x64
call fcn.004ab8a8
push dword [ebp - 0x24]
push 0x4e9da0
push 0x4e9dac
push dword [ebp - 0x14]
push 0x4e9da0
lea edx, [ebp - 0x28]
mov eax, 0x101
call fcn.004ab8a8
push dword [ebp - 0x28]
push 0x4e9da0
lea edx, [ebp - 0x2c]
mov eax, 0x102
call fcn.004ab8a8
push dword [ebp - 0x2c]
push 0x4e9da0
lea edx, [ebp - 0x30]
mov eax, 0x103
call fcn.004ab8a8
push dword [ebp - 0x30]
push dword [0x54956c]
lea edx, [ebp - 0x34]
mov eax, 0x104
call fcn.004ab8a8
push dword [ebp - 0x34]
push 0x4e9da0
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 0x4e9bb4
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.004d9a54
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 0x4e9baa
mov eax, dword [ebp - 0x10]
call fcn.00409988
jmp 0x4e9bb4
mov eax, 0x53fbb0
call fcn.0040e2f4
mov dl, 1
mov eax, dword [0x470804]
call fcn.0040377c
mov dword [0x53fbb8], eax
test bl, bl
jne 0x4e9bd2
cmp dword [0x53fbb0], 0
jne 0x4e9bf6
lea eax, [ebp - 8]
mov edx, dword [0x549960]
call fcn.00404650
mov esi, dword [0x53fbac]
lea eax, [ebp - 0xc]
mov edx, dword [0x549964]
call fcn.00404650
jmp 0x4e9c18
lea eax, [ebp - 8]
mov edx, dword [0x549964]
call fcn.00404650
mov esi, dword [0x53fbb0]
lea eax, [ebp - 0xc]
mov edx, dword [0x549960]
call fcn.00404650
mov eax, dword [ebp - 0xc]
call fcn.0046dd44
test al, al
je 0x4e9c30
mov eax, dword [ebp - 0xc]
call fcn.00409988
mov bl, 1
jmp 0x4e9c32
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4e9cb6
cmp byte [ebp - 1], 0
je 0x4e9cad
cmp dword [0x53fbb4], 0
je 0x4e9c65
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 0x4e9d5a
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 0x4e9d5a
test bl, bl
jne 0x4e9c4b
jmp 0x4e9d5a
test al, 6
je 0x4e9ccf
push 0x20
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4e9c4b
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 0x4e9c4b
mov eax, dword [0x53fbb8]
call fcn.004196f0
push edx
push eax
mov eax, esi
call fcn.004196f0
cmp edx, dword [esp + 4]
jne 0x4e9d0f
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e9c4b
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 0x4e9c4b
cmp dword [0x53fbb4], 0
jne 0x4e9d5a
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 0x4e9d90
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00404d08
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.004045dc
ret