Function at 0x10004ca0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003f6d0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100582a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x40], esi
cmp esi, edi
jne 0x10004cde
lea eax, [edi + 0x57]
jmp 0x10004f27
push str.AddLanguageMonitor___Start
call fcn.10027780
mov eax, dword [esi]
add esp, 4
mov dword [ebp - 0x34], edi
cmp eax, edi
je 0x10004f14
lea edx, [eax + 2]
jmp 0x10004d00
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004d00
sub eax, edx
sar eax, 1
je 0x10004f14
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
push edi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], edi
call fcn.100041f0
mov ebx, dword [ebp - 0x38]
test eax, eax
jne 0x10004d61
mov edi, dword [ebp - 0x3c]
xor esi, esi
test edi, edi
je 0x10004d61
jmp 0x10004d40
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebx + esi*4]
push ecx
push edx
call fcn.1002bc58
add esp, 8
test eax, eax
je 0x10004d5d
inc esi
cmp esi, edi
jb 0x10004d40
jmp 0x10004d61
mov byte [ebp - 0x2d], 1
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x10004d75
push ebx
call fcn.1002bac3
add esp, 4
cmp byte [ebp - 0x2d], 0
jne 0x10004f14
mov byte [ebp - 0x2d], 1
call fcn.100284d0
lea edx, [eax + 0x144]
mov edi, 8
cmp dword [edx + 0x14], edi
jb 0x10004d9a
mov edx, dword [edx]
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10004db3
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.10001820
push 0x5c
push 1
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 1
call fcn.10001540
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ebx + 8]
mov eax, ecx
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x10004df0
sub eax, esi
sar eax, 1
push eax
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10001700
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10004e14
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x10004e35
mov ecx, dword [ebp - 0x2c]
and eax, 0xfffffffe
cmp dword [ebp - 0x18], edi
jae 0x10004e2d
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10004e40
lea eax, [ebp - 0x2c]
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x10004e7e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10004e76
lea eax, [ebp - 0x2c]
push eax
push str....Monitor__s__is_not_used
jmp 0x10004ebb
call esi
cmp eax, 0x20
je 0x10004ea6
cmp eax, 0x21
je 0x10004ea6
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], edi
jae 0x10004e95
lea ecx, [ebp - 0x2c]
push eax
push ecx
push str._CreateFile__s_:_Error__d__
call fcn.100276e0
add esp, 0xc
jmp 0x10004ec3
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x2d], 0
cmp dword [ebp - 0x18], edi
jae 0x10004eb5
lea eax, [ebp - 0x2c]
push eax
push str....Monitor__s__is_used
call fcn.100276e0
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], edi
jb 0x10004edb
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.1002a9de
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp byte [ebp - 0x2d], dl
je 0x10004f14
push ebx
push 2
push edx
call sub.WINSPOOL.DRV_AddMonitorW
test eax, eax
jne 0x10004f14
call esi
push eax
push str.AddMonitor_Error__d_
mov dword [ebp - 0x34], eax
call fcn.100276e0
add esp, 8
mov esi, dword [ebp - 0x34]
push esi
push str.AddLanguageMonitor___End__d_
call fcn.10027780
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002b571
mov esp, ebp
pop ebp
ret