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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d0cb
mov eax, dword fs:[0]
push eax
sub esp, 0x380
mov eax, dword [0x4170b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403e40
add esp, 4
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx + eax - 1]
cmp edx, 0x5c
je 0x402315
push 0x41539c
mov eax, dword [ebp + 8]
push eax
call fcn.00403d50
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x36c]
push edx
call fcn.00403d40
add esp, 8
push 0x40e668
lea eax, [ebp - 0x36c]
push eax
call fcn.00403d50
add esp, 8
lea ecx, [ebp - 0x15c]
call fcn.00403870
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x36c]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.004038b0
movzx edx, al
test edx, edx
jne 0x4023dc
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x402396
mov dword [ebp - 0x374], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x374]
jmp 0x4025bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4023d7
push str.Fehler_beim_L
call fcn.00402210
add esp, 4
mov dword [ebp - 0x378], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x378]
jmp 0x4025bf
jmp 0x402566
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x264]
push edx
call fcn.00403d40
add esp, 8
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x264]
push ecx
call fcn.00403d50
add esp, 8
mov edx, dword [ebp - 0x15c]
and edx, 1
je 0x402446
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x370], eax
mov ecx, dword [ebp - 0x370]
and ecx, 0xfffffffe
mov dword [ebp - 0x370], ecx
mov edx, dword [ebp - 0x370]
push edx
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x15c]
and ecx, 0x10
je 0x4024bf
push 0x40e638
lea edx, [ebp - 0x130]
push edx
call fcn.00403cb0
add esp, 8
test eax, eax
je 0x4024bd
push 0x40e634
lea eax, [ebp - 0x130]
push eax
call fcn.00403cb0
add esp, 8
test eax, eax
je 0x4024bd
push 0
lea ecx, [ebp - 0x264]
push ecx
call fcn.004022c0
add esp, 8
test eax, eax
jne 0x4024bd
mov dword [ebp - 0x37c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x37c]
jmp 0x4025bf
jmp 0x402509
lea edx, [ebp - 0x264]
push edx
call fcn.004021e0
add esp, 4
movzx eax, al
test eax, eax
jne 0x402509
push str.Fehler_beim_L
call fcn.00402210
add esp, 4
mov dword [ebp - 0x380], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x380]
jmp 0x4025bf
lea ecx, [ebp - 0x15c]
call fcn.004038f0
movzx ecx, al
test ecx, ecx
jne 0x4023dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x40255b
push str.Fehler_beim_L
call fcn.00402210
add esp, 4
mov dword [ebp - 0x384], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x384]
jmp 0x4025bf
lea ecx, [ebp - 0x15c]
call fcn.00403920
mov edx, dword [ebp + 8]
push edx
call fcn.004021e0
add esp, 4
movzx eax, al
test eax, eax
jne 0x40259d
mov dword [ebp - 0x388], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x388]
jmp 0x4025bf
mov dword [ebp - 0x38c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x15c]
call fcn.00403890
mov eax, dword [ebp - 0x38c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00403c0b
mov esp, ebp
pop ebp
ret