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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x586ffe
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5eb770]
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 edi, ecx
xor esi, esi
mov dword [ebp - 0x40], edi
cmp edi, esi
jne 0x45033e
lea eax, [esi + 0x57]
jmp 0x45059e
push str.AddLanguageMonitor___Start
call fcn.0045c120
mov eax, dword [edi]
add esp, 4
mov dword [ebp - 0x3c], esi
cmp eax, esi
je 0x45058b
lea edx, [eax + 2]
jmp 0x450360
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x450360
sub eax, edx
sar eax, 1
je 0x45058b
mov byte [ebp - 0x2d], 0
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov dword [ebp - 4], esi
call fcn.004520e0
add esp, 8
test eax, eax
jne 0x4503c1
mov edi, dword [ebp - 0x38]
cmp edi, esi
jbe 0x4503c1
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx]
mov ecx, dword [ebx + esi*4]
push eax
push ecx
call fcn.00556d01
add esp, 8
test eax, eax
je 0x4503bd
inc esi
cmp esi, edi
jb 0x4503a0
jmp 0x4503c1
mov byte [ebp - 0x2d], 1
or edi, 0xffffffff
lea esi, [ebp - 0x38]
mov dword [ebp - 4], edi
call fcn.0045ae00
cmp byte [ebp - 0x2d], 0
jne 0x45058b
test byte [0x60aea0], 1
mov byte [ebp - 0x2d], 1
jne 0x450409
mov eax, 1
or dword [0x60aea0], eax
mov dword [ebp - 4], eax
call fcn.00458180
push 0x58b2e0
call fcn.005597b9
add esp, 4
mov dword [ebp - 4], edi
mov eax, dword [0x60adf8]
mov ebx, 8
cmp dword [0x60ae0c], ebx
jae 0x450420
mov eax, 0x60adf8
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450440
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x2c]
call fcn.00401d90
push 0x5c
mov eax, 1
mov edi, esi
mov dword [ebp - 4], 2
call fcn.00446c20
mov edi, dword [ebp - 0x40]
mov eax, dword [edi + 8]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x450480
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x450480
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004293d0
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4504a3
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4504c4
mov ecx, dword [ebp - 0x2c]
and eax, 0xfffffffe
cmp dword [ebp - 0x18], ebx
jae 0x4504bc
lea ecx, [ebp - 0x2c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4504cf
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 0x45050d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x450505
lea eax, [ebp - 0x2c]
push eax
push str....Monitor__s__is_not_used
jmp 0x45054a
call esi
cmp eax, 0x20
je 0x450535
cmp eax, 0x21
je 0x450535
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x450524
lea ecx, [ebp - 0x2c]
push eax
push ecx
push str._CreateFile__s_:_Error__d__
call fcn.0045c090
add esp, 0xc
jmp 0x450552
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x2d], 0
cmp dword [ebp - 0x18], ebx
jae 0x450544
lea eax, [ebp - 0x2c]
push eax
push str....Monitor__s__is_used
call fcn.0045c090
add esp, 8
cmp dword [ebp - 0x18], ebx
jb 0x450563
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00461cb5
add esp, 4
cmp byte [ebp - 0x2d], 0
je 0x45058b
push edi
push 2
push 0
call dword [sym.imp.WINSPOOL.DRV_AddMonitorW]
test eax, eax
jne 0x45058b
call esi
push eax
push str.AddMonitor_Error__d_
mov dword [ebp - 0x3c], eax
call fcn.0045c090
add esp, 8
mov esi, dword [ebp - 0x3c]
push esi
push str.AddLanguageMonitor___End__d_
call fcn.0045c120
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.0055649d
mov esp, ebp
pop ebp
ret