Function at 0x4ea11c
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 0x4ea124
push ebx
push esi
mov ebx, edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4ea4e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [0x540320], 0x811
lea eax, [ebp - 0x14]
mov edx, dword [0x54a62c]
call fcn.00404650
lea edx, [ebp - 0x18]
mov eax, 0xff
call fcn.004ab980
mov ecx, dword [ebp - 0x18]
mov eax, 0x54a964
mov edx, dword [0x540434]
call fcn.004048d8
lea edx, [ebp - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.004ab980
mov ecx, dword [ebp - 0x1c]
mov eax, 0x54a968
mov edx, dword [0x540434]
call fcn.004048d8
cmp dword [0x540bac], 0
jne 0x4ea321
mov dl, 1
mov eax, dword [0x47089c]
call fcn.0040377c
mov dword [0x540bac], eax
lea edx, [ebp - 0x24]
mov eax, 0x64
call fcn.004ab980
push dword [ebp - 0x24]
push 0x4ea4fc
push 0x4ea508
push dword [ebp - 0x14]
push 0x4ea4fc
lea edx, [ebp - 0x28]
mov eax, 0x101
call fcn.004ab980
push dword [ebp - 0x28]
push 0x4ea4fc
lea edx, [ebp - 0x2c]
mov eax, 0x102
call fcn.004ab980
push dword [ebp - 0x2c]
push 0x4ea4fc
lea edx, [ebp - 0x30]
mov eax, 0x103
call fcn.004ab980
push dword [ebp - 0x30]
push dword [0x54a56c]
lea edx, [ebp - 0x34]
mov eax, 0x104
call fcn.004ab980
push dword [ebp - 0x34]
push 0x4ea4fc
lea eax, [ebp - 0x20]
mov edx, 0xd
call fcn.0040494c
mov edx, dword [ebp - 0x20]
mov eax, dword [0x540bac]
call fcn.00470e88
xor eax, eax
mov dword [0x540bb0], eax
cmp dword [0x54a71c], 0
je 0x4ea310
mov dl, 1
mov eax, dword [0x47089c]
call fcn.0040377c
mov dword [0x540bb0], 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 [0x541c9c]
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 [0x54a71c]
call fcn.00404e90
mov eax, dword [ebp - 0x44]
xor ecx, ecx
pop edx
call fcn.004d9bfc
push 0xa
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0x10]
call fcn.00404e90
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x540bb0]
push eax
call fcn.0046dfb8
test al, al
je 0x4ea306
mov eax, dword [ebp - 0x10]
call fcn.00409988
jmp 0x4ea310
mov eax, 0x540bb0
call fcn.0040e368
mov dl, 1
mov eax, dword [0x47089c]
call fcn.0040377c
mov dword [0x540bb8], eax
test bl, bl
jne 0x4ea32e
cmp dword [0x540bb0], 0
jne 0x4ea352
lea eax, [ebp - 8]
mov edx, dword [0x54a964]
call fcn.00404650
mov esi, dword [0x540bac]
lea eax, [ebp - 0xc]
mov edx, dword [0x54a968]
call fcn.00404650
jmp 0x4ea374
lea eax, [ebp - 8]
mov edx, dword [0x54a968]
call fcn.00404650
mov esi, dword [0x540bb0]
lea eax, [ebp - 0xc]
mov edx, dword [0x54a964]
call fcn.00404650
mov eax, dword [ebp - 0xc]
call fcn.0046dddc
test al, al
je 0x4ea38c
mov eax, dword [ebp - 0xc]
call fcn.00409988
mov bl, 1
jmp 0x4ea38e
xor ebx, ebx
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4ea412
cmp byte [ebp - 1], 0
je 0x4ea409
cmp dword [0x540bb4], 0
je 0x4ea3c1
mov eax, dword [0x540bb4]
call fcn.004037ac
xor eax, eax
mov dword [0x540bb4], eax
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x4c]
push eax
push esi
call fcn.0046df00
test al, al
je 0x4ea4b6
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 [0x414e40]
call fcn.00419c40
mov dword [0x540bb4], eax
jmp 0x4ea4b6
test bl, bl
jne 0x4ea3a7
jmp 0x4ea4b6
test al, 6
je 0x4ea42b
push 0x20
lea eax, [ebp - 8]
call fcn.00404adc
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4ea3a7
push 0xa
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 8]
call fcn.00404e90
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [0x540bb8]
push eax
call fcn.0046dfb8
test al, al
je 0x4ea3a7
mov eax, dword [0x540bb8]
call fcn.00419764
push edx
push eax
mov eax, esi
call fcn.00419764
cmp edx, dword [esp + 4]
jne 0x4ea46b
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4ea3a7
mov eax, dword [0x540bb8]
call fcn.00419764
mov ecx, eax
mov eax, dword [0x540bb8]
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
call fcn.00471f28
test eax, eax
jne 0x4ea3a7
cmp dword [0x540bb4], 0
jne 0x4ea4b6
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x414e40]
call fcn.00419c40
mov dword [0x540bb4], eax
xor eax, eax
mov dword [0x540320], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea4ec
lea eax, [ebp - 0x50]
mov edx, 6
call fcn.00404d08
lea eax, [ebp - 0x38]
mov edx, 0xd
call fcn.004045dc
ret