Function at 0x41990b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x4f39a8
call fcn.004eadec
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebx + 0x344], esi
push edi
je 0x419950
mov eax, dword [ebx + 0x64]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x14], eax
jle 0x419950
lea edi, [ebx + 0x310]
mov ecx, dword [ebx + 0x64]
mov eax, esi
call fcn.0045d964
push dword [eax]
call fcn.00414e8e
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x419937
xor esi, esi
cmp dword [ebp + 8], esi
je 0x41995d
cmp dword [ebx + 0x340], esi
je 0x419971
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
xor esi, esi
cmp dword [ebx + 0x140], esi
jne 0x4199b1
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x419baa
mov eax, dword [eax]
push dword [eax]
call fcn.00499e6c
test eax, eax
je 0x4199b1
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x419baa
mov eax, dword [eax]
mov eax, dword [eax]
push 1
lea ecx, [ebx + 0x148]
push ecx
push eax
call fcn.00499b91
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x419baa
mov eax, dword [eax]
mov eax, dword [eax]
push 1
lea ecx, [ebx + 0x148]
push ecx
push eax
call fcn.00499d38
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x419baa
mov eax, dword [eax]
push dword [eax]
call fcn.0049b780
cmp eax, esi
mov dword [ebp - 0x14], eax
jge 0x419b95
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x419baa
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x20]
call fcn.00404868
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.0040318a
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x419a2a
push eax
call fcn.004013aa
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], 0
jbe 0x419baa
mov eax, dword [eax]
push dword [eax]
call fcn.0041424f
test eax, eax
mov esi, dword [ebp - 0x18]
jne 0x419af7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x419af7
test al, 1
je 0x419af7
mov eax, dword [0x51a438]
push 0x814f
push dword [0x521618]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403988
mov edi, dword [ebp - 0x10]
push 0x34
push dword [0x52224c]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x419ae6
and dword [ebp + 8], 0xfffffffe
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x419ae6
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x419abf
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x419ad4
push eax
call fcn.004013aa
cmp dword [ebx + 0x340], 0
je 0x41996f
jmp 0x41995d
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x419af7
push eax
call fcn.004013aa
mov eax, dword [0x51a438]
push 0x814e
push dword [0x521618]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00403988
lea eax, [ebp - 0x18]
push eax
xor edi, edi
inc edi
lea eax, [ebp + 8]
mov dword [ebp - 0x18], 0xa
call fcn.0040363d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
and eax, 0xffff
push ecx
call fcn.004af513
pop ecx
lea ecx, [ebp + 8]
push ecx
call fcn.00405fdc
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51a43c]
je 0x419b58
push eax
call fcn.004013aa
mov edi, dword [ebp + 8]
push 0x10
push dword [0x52224c]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0xc]
cmp eax, dword [0x51a43c]
je 0x419b7e
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x51a43c]
je 0x419b93
push eax
call fcn.004013aa
xor esi, esi
lea eax, [ebx + 0x300]
cmp dword [eax + 4], esi
jbe 0x419baa
mov ecx, dword [eax]
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
ja 0x419bb4
push 0x80070057
call fcn.004010ca
mov eax, dword [eax]
push ecx
push dword [eax]
call fcn.004143cb
push dword [ebx + 0x33c]
mov eax, dword [ebx + 0x68]
call fcn.0046c6f2
mov eax, dword [ebp - 0x14]
jmp 0x41995f