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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae800
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x608554]
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 ebx, ecx
test ebx, ebx
jne 0x538699
lea eax, [ecx + 0x57]
jmp 0x538900
push str.AddLanguageMonitor___Start
call fcn.0054c5b0
mov ecx, dword [ebx]
add esp, 4
xor esi, esi
test ecx, ecx
je 0x5388f0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5386b5
sub ecx, edx
sar ecx, 1
je 0x5388f0
mov byte [ebp - 0x29], al
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
push ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.004a3d30
test eax, eax
jne 0x538711
mov edi, dword [ebp - 0x34]
xor esi, esi
test edi, edi
je 0x53870f
mov eax, dword [ebp - 0x30]
push dword [ebx]
push dword [eax + esi*4]
call fcn.00574f99
add esp, 8
test eax, eax
je 0x53870b
inc esi
cmp esi, edi
jb 0x5386f0
jmp 0x53870f
mov byte [ebp - 0x29], 1
xor esi, esi
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.004a3d00
cmp byte [ebp - 0x29], 0
jne 0x5388f0
mov byte [ebp - 0x29], 1
call fcn.0052ee40
cmp dword [eax + 0x188], 8
lea edx, [eax + 0x174]
jb 0x538744
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x538760
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004035d0
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
cmp ecx, edx
jae 0x5387a3
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [eax + ecx*2], 0x5c
jmp 0x5387b5
push 0x5c
mov byte [ebp - 0x30], 0
push dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0041b230
mov edx, dword [ebx + 8]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5387c0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040dc80
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x538805
and eax, 0xfffffffe
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
je 0x53884e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str....Monitor__s__is_not_used
jmp 0x53888b
call edi
cmp eax, 0x20
je 0x538876
cmp eax, 0x21
je 0x538876
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push str._CreateFile__s_:_Error__d__
call fcn.0054c500
add esp, 0xc
jmp 0x538893
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 0x29], 0
cmovae eax, dword [ebp - 0x28]
push eax
push str....Monitor__s__is_used
call fcn.0054c500
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x5388c9
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5388bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x53891c
push edx
push ecx
call fcn.0056deb6
add esp, 8
cmp byte [ebp - 0x29], 0
je 0x5388f0
push ebx
push 2
push 0
call dword [sym.imp.WINSPOOL.DRV_AddMonitorW]
test eax, eax
jne 0x5388f0
call edi
mov esi, eax
push esi
push str.AddMonitor_Error__d_
call fcn.0054c500
add esp, 8
push esi
push str.AddLanguageMonitor___End__d_
call fcn.0054c5b0
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.0056d977
mov esp, ebp
pop ebp
ret
call fcn.00574908
int3