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

Disassembly:
mov eax, 0x4f23c9
call fcn.004ebd20
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebx + 0x344], esi
push edi
je 0x4193e4
mov eax, dword [ebx + 0x64]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x14], eax
jle 0x4193e4
lea edi, [ebx + 0x310]
mov ecx, dword [ebx + 0x64]
mov eax, esi
call fcn.0045d61b
push dword [eax]
call fcn.00414849
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x4193cb
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4193f1
cmp dword [ebx + 0x340], esi
je 0x419405
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 0x419445
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x41963e
mov eax, dword [eax]
push dword [eax]
call fcn.0049a50d
test eax, eax
je 0x419445
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x41963e
mov eax, dword [eax]
mov eax, dword [eax]
push 1
lea ecx, [ebx + 0x148]
push ecx
push eax
call fcn.0049a232
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x41963e
mov eax, dword [eax]
mov eax, dword [eax]
push 1
lea ecx, [ebx + 0x148]
push ecx
push eax
call fcn.0049a3d9
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x41963e
mov eax, dword [eax]
push dword [eax]
call fcn.0049be21
cmp eax, esi
mov dword [ebp - 0x14], eax
jge 0x419629
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x41963e
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x20]
call fcn.004042f5
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.0040306f
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4194be
push eax
call fcn.004013b2
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], 0
jbe 0x41963e
mov eax, dword [eax]
push dword [eax]
call fcn.00413c18
test eax, eax
mov esi, dword [ebp - 0x18]
jne 0x41958b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x41958b
test al, 1
je 0x41958b
mov eax, dword [0x51b438]
push 0x814f
push dword [0x522618]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040386d
mov edi, dword [ebp - 0x10]
push 0x34
push dword [0x52324c]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x41957a
and dword [ebp + 8], 0xfffffffe
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41957a
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x419553
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x419568
push eax
call fcn.004013b2
cmp dword [ebx + 0x340], 0
je 0x419403
jmp 0x4193f1
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x41958b
push eax
call fcn.004013b2
mov eax, dword [0x51b438]
push 0x814e
push dword [0x522618]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.0040386d
lea eax, [ebp - 0x18]
push eax
xor edi, edi
inc edi
lea eax, [ebp + 8]
mov dword [ebp - 0x18], 0xa
call fcn.00403522
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
and eax, 0xffff
push ecx
call fcn.004afaf2
pop ecx
lea ecx, [ebp + 8]
push ecx
call fcn.00405a57
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x51b43c]
je 0x4195ec
push eax
call fcn.004013b2
mov edi, dword [ebp + 8]
push 0x10
push dword [0x52324c]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0xc]
cmp eax, dword [0x51b43c]
je 0x419612
push eax
call fcn.004013b2
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x51b43c]
je 0x419627
push eax
call fcn.004013b2
xor esi, esi
lea eax, [ebx + 0x300]
cmp dword [eax + 4], esi
jbe 0x41963e
mov ecx, dword [eax]
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
ja 0x419648
push 0x80070057
call fcn.004010d2
mov eax, dword [eax]
push ecx
push dword [eax]
call fcn.00413d94
push dword [ebx + 0x33c]
mov eax, dword [ebx + 0x68]
call fcn.0046cb67
mov eax, dword [ebp - 0x14]
jmp 0x4193f3