Function at 0x422a50
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4be7d1
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0x138], eax
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x14c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x164]
mov ebp, dword [esp + 0x160]
mov esi, ecx
mov ecx, dword [esp + 0x15c]
cmp dword [ecx + 0x24], 0
mov dword [esp + 0x18], eax
je 0x422ac2
push 0x4eb2dc
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], 0x80800000
call fcn.004a1a26
mov eax, dword [0x4fd600]
test eax, eax
je 0x422adb
push 0
push 0
push 0x800c
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
lea edi, [esp + 0x18]
call fcn.00414140
mov dword [esp + 0x154], 0
mov eax, dword [esp + 0x14]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x20]
call fcn.00448930
mov eax, edi
lea edx, [esp + 0x20]
call fcn.00448b50
mov ecx, dword [esp + 0x168]
mov edx, dword [esp + 0x16c]
push ecx
push edx
lea eax, [esp + 0x28]
push eax
push esi
mov byte [esp + 0x164], 2
mov ecx, dword [esp + 0x28]
push ebx
mov edx, ebp
call fcn.00417030
test al, al
jne 0x422bfb
mov ecx, esi
call fcn.00447720
push 0x4ddc44
push 0x4d65ac
mov edx, eax
call fcn.00448ff0
add esp, 8
mov ecx, esi
call fcn.00447770
mov eax, dword [0x4fd600]
test eax, eax
je 0x422b85
push 0
push 0
push 0x800d
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov ecx, esi
call fcn.00447720
push 0x4ddc58
push 0x4d65ac
mov edx, eax
call fcn.00448ff0
add esp, 8
cmp byte [esp + 0x13c], 0
mov dword [esp + 0x20], vtable.t_str.0
jne 0x422bc7
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x422bc7
push eax
call fcn.00498f5b
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x4f9f74
je 0x422bf4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x422bf4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00498b08
add esp, 4
xor al, al
jmp 0x422cba
mov ecx, dword [esp + 0x15c]
cmp dword [ecx + 0x24], 0
je 0x422c1f
push 0x4eb2dc
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x24], 0x80800000
call fcn.004a1a26
cmp dword [0x4fd600], 0
je 0x422c64
push str.Local_sgim_evt_reinstall
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 1
mov esi, eax
mov eax, dword [0x4fd600]
push 0x800c
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
test esi, esi
je 0x422c64
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13c], 0
mov dword [esp + 0x20], vtable.t_str.0
jne 0x422c8b
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x422c8b
push eax
call fcn.00498f5b
add esp, 4
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, 0x4f9f74
je 0x422cb8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x422cb8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00498b08
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x14c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00497c58
add esp, 0x148
ret 0x14