Function at 0x429560
Capabilities:
Check if file exists
Get file attributes
Hide graphical window
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d492
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x5c6150]
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
mov dword [ebp - 0x14c], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push str.4B14A509_FC01_4a73_A599_3788A3500E1F
push 0
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0x10]
push 0x1f0003
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
test esi, esi
je 0x429602
push 0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
test eax, eax
jne 0x4295fc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x144]
call fcn.00450c80
push 0x595d10
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
xor al, al
jmp 0x42999c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x148]
mov ecx, ebx
push eax
call fcn.00424940
push 0x80
mov dword [ebp - 4], 0
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x148]
lea ecx, [ebp - 0x134]
call fcn.00451610
mov byte [ebp - 4], 1
lea eax, [ebp - 0x128]
cmp byte [ebp - 0x18], 0
cmove eax, dword [ebp - 0x12c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4299ba
shr eax, 4
not al
and al, 1
je 0x4299ba
mov esi, dword [ebx + 0xc]
lea eax, [ebp - 0x134]
sub esp, 0x124
mov ecx, esp
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.00451900
mov ecx, esi
call fcn.00439320
add esp, 0x124
test al, al
je 0x4299ba
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.0043a770
mov eax, dword [ebx + 0x24]
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4296e1
mov ecx, ebx
call fcn.00417c70
mov eax, dword [0x5c6ad0]
mov ecx, 0x5920ac
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x138], eax
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x429711
movzx eax, cx
lea ecx, [ebp - 0x138]
push eax
call fcn.00413df0
jmp 0x42974b
push 0x5920ac
call esi
mov esi, eax
test esi, esi
je 0x429745
push esi
lea ecx, [ebp - 0x138]
call fcn.00413af0
test eax, eax
je 0x429745
lea eax, [esi + esi]
push eax
push 0x5920ac
push dword [ebp - 0x138]
call fcn.004d9a60
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov byte [ebp - 4], 2
mov ecx, str._S__M
mov eax, dword [0x5c6ad0]
mov dword [ebp - 0x140], eax
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x429779
movzx eax, cx
lea ecx, [ebp - 0x140]
push eax
call fcn.00413df0
jmp 0x4297ad
push str._S__M
call esi
mov esi, eax
test esi, esi
je 0x4297ad
push esi
lea ecx, [ebp - 0x140]
call fcn.00413af0
test eax, eax
je 0x4297ad
lea eax, [esi + esi]
push eax
push str._S__M
push dword [ebp - 0x140]
call fcn.004d9a60
add esp, 0xc
push 0
push 1
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14c]
push eax
lea eax, [ebp - 0x140]
push eax
push edi
mov edi, dword [ebp - 0x144]
push edi
call fcn.0042b2c0
test al, al
mov eax, dword [ebp - 0x140]
sete byte [ebp - 0x139]
lea ecx, [eax - 0xc]
cmp ecx, 0x5c6ad4
je 0x429807
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429807
push esi
call fcn.004d71b8
add esp, 4
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x138]
lea ecx, [eax - 0xc]
cmp ecx, 0x5c6ad4
je 0x429833
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429833
push esi
call fcn.004d71b8
add esp, 4
cmp byte [ebp - 0x139], 0
je 0x429937
test ebx, ebx
je 0x429926
cmp dword [ebx + 4], 0
je 0x429926
mov ecx, ebx
call fcn.00417cb0
mov eax, dword [0x5c6ad0]
mov ecx, 0x595d24
mov dword [ebp - 0x138], eax
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x429883
movzx eax, cx
lea ecx, [ebp - 0x138]
push eax
call fcn.00413df0
jmp 0x4298bb
push 0x595d24
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x4298bb
push esi
lea ecx, [ebp - 0x138]
call fcn.00413af0
test eax, eax
je 0x4298bb
lea eax, [esi + esi]
push eax
push 0x595d24
push dword [ebp - 0x138]
call fcn.004d9a60
add esp, 0xc
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00417150
lea ecx, [ebp - 0x138]
mov byte [ebp - 4], 1
call fcn.00413c80
mov ecx, ebx
call fcn.00417100
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x429926
push str.quitevent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
mov ecx, ebx
push esi
call fcn.00417cf0
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00450c80
push 0x595d44
jmp 0x429ae5
mov ecx, ebx
call fcn.00417cb0
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x429969
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x429969
push eax
call fcn.004e1b56
add esp, 4
mov eax, dword [ebp - 0x148]
lea ecx, [eax - 0xc]
cmp ecx, 0x5c6ad4
je 0x42999a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42999a
mov ecx, dword [ebp - 0x148]
add ecx, 0xfffffff4
push ecx
call fcn.004d71b8
add esp, 4
mov al, bl
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.004d6cfd
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x134]
mov ecx, ebx
push eax
push dword [ebp - 0x138]
push edi
push dword [ebp - 0x144]
call fcn.004260c0
test al, al
jne 0x42993e
mov eax, dword [edi + 0x13c]
cmp dword [eax], 0
je 0x429a03
push 0x5c080c
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x14c], 0x80800000
push eax
call fcn.004da58d
mov eax, dword [edi + 0x138]
push 0x597384
push 0x1c0
mov dword [eax], 1
mov eax, dword [edi + 0x138]
add eax, 4
push eax
call fcn.004e1af2
mov eax, dword [0x5c6ad0]
mov ecx, 0x5920ac
mov dword [ebp - 0x138], eax
add esp, 0xc
mov eax, ecx
shr eax, 0x10
test eax, eax
jne 0x429a55
movzx eax, cx
lea ecx, [ebp - 0x138]
push eax
call fcn.00413df0
jmp 0x429a8d
push 0x5920ac
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x429a8d
push esi
lea ecx, [ebp - 0x138]
call fcn.00413af0
test eax, eax
je 0x429a8d
lea eax, [esi + esi]
push eax
push 0x5920ac
push dword [ebp - 0x138]
call fcn.004d9a60
add esp, 0xc
lea eax, [ebp - 0x138]
mov byte [ebp - 4], 5
mov ecx, dword [edi + 0x134]
push eax
push dword [edi + 0x138]
call fcn.00416eb0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x138]
lea ecx, [eax - 0xc]
cmp ecx, 0x5c6ad4
je 0x429ad5
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x429ad5
push esi
call fcn.004d71b8
add esp, 4
mov ecx, dword [ebp - 0x144]
call fcn.00450c80
push 0x595d58
push 0x5971f4
push eax
call fcn.00450580
add esp, 0xc
xor bl, bl
jmp 0x429940