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

Disassembly:
push 0xffffffffffffffff
push 0x4be928
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x4f36a0]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f36a0]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov eax, dword [esp + 0x170]
mov ebp, dword [esp + 0x174]
mov ebx, edx
mov edx, dword [0x4f9f84]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
push ebx
lea edi, [esp + 0x1c]
mov dword [esp + 0x16c], 0
call fcn.00414140
mov eax, dword [esp + 0x18]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x34]
call fcn.00448930
mov eax, esi
lea edx, [esp + 0x34]
call fcn.00448b50
mov byte [esp + 0x168], 3
cmp byte [esp + 0x150], 0
lea eax, [esp + 0x40]
jne 0x418458
mov eax, dword [esp + 0x3c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41862c
shr eax, 4
not al
and al, 1
je 0x41862c
mov edi, dword [ebx + 0xc]
sub esp, 0x124
mov esi, esp
mov ecx, esi
mov dword [esp + 0x148], esp
call fcn.00448930
cmp byte [esp + 0x274], 0
lea eax, [esp + 0x164]
jne 0x4184a9
mov eax, dword [esp + 0x160]
add eax, 4
mov edx, esi
call fcn.00448b50
mov byte [esp + 0x28c], 3
call fcn.00409440
add esp, 0x124
test al, al
je 0x41862c
xor esi, esi
mov eax, ebp
mov dword [ebp], esi
mov dword [ebp + 4], esi
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], esi
call fcn.00421460
mov ecx, dword [ebx + 0x24]
mov edi, dword [ecx + 4]
cmp edi, esi
je 0x4184f4
mov esi, edi
call fcn.0040c580
mov ebx, 0x4d6464
lea esi, [esp + 0x1c]
call fcn.004035f0
lea esi, [esp + 0x24]
mov byte [esp + 0x168], 7
call fcn.004035f0
mov ecx, dword [esp + 0x30]
push 0
push 1
lea edx, [esp + 0x24]
push edx
mov eax, esi
push eax
push ebp
mov ebp, dword [esp + 0x40]
push ebp
mov byte [esp + 0x180], 8
call fcn.0041ad20
test al, al
sete bl
call fcn.004035c0
lea esi, [esp + 0x1c]
mov byte [esp + 0x168], 3
call fcn.004035c0
test bl, bl
je 0x418605
test edi, edi
je 0x4185d7
cmp dword [edi + 4], 0
je 0x4185d7
mov esi, edi
call fcn.0040c5c0
mov ebx, 0x4dcc04
lea esi, [esp + 0x1c]
call fcn.004035f0
mov eax, esi
mov esi, edi
mov byte [esp + 0x168], 9
call fcn.0040ba10
lea esi, [esp + 0x1c]
mov byte [esp + 0x168], 3
call fcn.004035c0
mov esi, edi
call fcn.0040b710
push str.quitevent
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, edi
mov esi, eax
call fcn.0040c600
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [edi + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4dc978
mov ecx, ebp
call fcn.004032e0
lea ecx, [esp + 0x34]
call fcn.004444f0
lea esi, [esp + 0x18]
call fcn.004035c0
lea esi, [esp + 0x20]
call fcn.004035c0
xor al, al
jmp 0x418764
mov esi, edi
call fcn.0040c5c0
lea ecx, [esp + 0x34]
call fcn.004444f0
lea esi, [esp + 0x18]
call fcn.004035c0
lea esi, [esp + 0x20]
call fcn.004035c0
jmp 0x418762
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
push eax
push esi
mov edx, ebp
mov ecx, ebx
call fcn.00415470
test al, al
jne 0x4186ea
mov edi, ebp
call fcn.00420dd0
mov ecx, esi
call fcn.00447720
push 0x4dcc24
push 0x4d65ac
mov edx, eax
call fcn.00448ff0
add esp, 8
cmp byte [esp + 0x150], 0
mov dword [esp + 0x34], vtable.t_str.0
jne 0x418695
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x40]
cmp eax, ecx
je 0x418695
push eax
call fcn.00498f5b
add esp, 4
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, 0x4f9f74
je 0x4186c4
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4186c4
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00498b08
add esp, 4
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f9f74
je 0x4186e6
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x4186e6
push esi
call fcn.00498b08
add esp, 4
xor al, al
jmp 0x418764
cmp byte [esp + 0x150], 0
mov dword [esp + 0x34], vtable.t_str.0
jne 0x418711
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x40]
cmp eax, edx
je 0x418711
push eax
call fcn.00498f5b
add esp, 4
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f9f74
je 0x418740
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x418740
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00498b08
add esp, 4
mov eax, dword [esp + 0x20]
lea ecx, [eax - 0xc]
cmp ecx, 0x4f9f74
je 0x418762
lea esi, [eax - 0xc]
push esi
call edi
test eax, eax
jg 0x418762
push esi
call fcn.00498b08
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.00497c58
add esp, 0x158
ret 8