Function at 0x40af10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b107b
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x4d8c20]
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 edi, ecx
xor ebx, ebx
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xa0], edi
mov dword [ebp - 0xa4], ebx
call fcn.00419320
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x40afaa
push ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push 0x4b9470
mov ecx, edi
mov word [edi], ax
call fcn.00404447
cmp dword [ebp - 0x18], 8
jb 0x40af8c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00475dcb
add esp, 4
mov eax, edi
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.004751dc
mov esp, ebp
pop ebp
ret
push 5
xor edx, edx
mov esi, 7
push str.Panel
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
call fcn.00404447
mov byte [ebp - 4], 1
push 6
xor eax, eax
push 0x4b9414
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.00404447
lea ecx, [ebp - 0x2c]
push ecx
lea ebx, [ebp - 0x48]
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00419220
add esp, 4
push eax
lea ebx, [ebp - 0x64]
lea edi, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00419220
add esp, 4
mov edi, eax
lea edx, [ebp - 0x2c]
cmp edx, edi
je 0x40b07b
cmp dword [ebp - 0x18], 8
jb 0x40b030
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00475dcb
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [edi + 0x14], 8
jae 0x40b05b
mov eax, dword [edi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x2c]
push edi
push eax
call fcn.00475550
add esp, 0xc
jmp 0x40b062
mov ecx, dword [edi]
mov dword [ebp - 0x2c], ecx
mov dword [edi], ebx
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x18], eax
xor ecx, ecx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], cx
jmp 0x40b07d
xor ebx, ebx
cmp dword [ebp - 0x6c], 8
jb 0x40b08f
mov edx, dword [ebp - 0x80]
push edx
call fcn.00475dcb
add esp, 4
xor eax, eax
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
jb 0x40b0b3
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00475dcb
add esp, 4
xor edx, edx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
jb 0x40b0da
mov eax, dword [ebp - 0x48]
push eax
call fcn.00475dcb
add esp, 4
xor ecx, ecx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
jb 0x40b0fb
mov edx, dword [ebp - 0x64]
push edx
call fcn.00475dcb
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x40b193
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40b11f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b11c
test al, 0x10
jne 0x40b12f
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
jae 0x40b128
lea eax, [ebp - 0x2c]
mov ecx, eax
call fcn.004193e0
mov edi, dword [ebp - 0xa0]
xor eax, eax
lea ecx, [ebp - 0x2c]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp edi, ecx
je 0x40af7a
cmp dword [edi + 0x14], 8
jb 0x40b15c
mov edx, dword [edi]
push edx
call fcn.00475dcb
add esp, 4
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp dword [ebp - 0x18], 8
jae 0x40b19b
mov ecx, dword [ebp - 0x1c]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x2c]
push eax
push edi
call fcn.00475550
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x40af8c
lea eax, [ebp - 0x2c]
jmp 0x40b10c
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [edi], ecx
mov dword [edi + 0x10], edx
mov dword [edi + 0x14], eax
jmp 0x40af8c