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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5335db
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x56adc0]
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.004251c0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x40b0cd
push ebx
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push 0x53ff0c
mov ecx, edi
mov word [edi], ax
call fcn.00404bd5
cmp dword [ebp - 0x18], 8
jb 0x40b2d6
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x40b2ce
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.00404bd5
mov byte [ebp - 4], 1
push 6
xor eax, eax
push 0x53ff8c
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.00404bd5
lea ebx, [ebp - 0x48]
lea ecx, [ebp - 0x2c]
lea edi, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.00424f20
lea ebx, [ebp - 0x64]
mov ecx, eax
lea edi, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00424f20
mov edi, eax
lea ecx, [ebp - 0x2c]
cmp ecx, edi
je 0x40b198
cmp dword [ebp - 0x18], 8
jb 0x40b14d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004f77ab
add esp, 4
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [edi + 0x14], 8
jae 0x40b178
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x2c]
push edi
push edx
call fcn.004f6f30
add esp, 0xc
jmp 0x40b17f
mov eax, dword [edi]
mov dword [ebp - 0x2c], eax
mov dword [edi], ebx
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x1c], ecx
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], ax
jmp 0x40b19a
xor ebx, ebx
cmp dword [ebp - 0x6c], 8
jb 0x40b1ac
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
jb 0x40b1d0
mov eax, dword [ebp - 0x9c]
push eax
call fcn.004f77ab
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
jb 0x40b1f7
mov edx, dword [ebp - 0x48]
push edx
call fcn.004f77ab
add esp, 4
xor eax, eax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 8
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
jb 0x40b218
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004f77ab
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x40b2a9
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x40b23c
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b239
test al, 0x10
jne 0x40b24c
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
jae 0x40b245
lea eax, [ebp - 0x2c]
mov ecx, eax
call fcn.00425220
mov edi, dword [ebp - 0xa0]
xor edx, edx
lea eax, [ebp - 0x2c]
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], dx
cmp edi, eax
je 0x40b2c4
cmp dword [edi + 0x14], 8
jb 0x40b275
mov ecx, dword [edi]
push ecx
call fcn.004f77ab
add esp, 4
xor edx, edx
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
mov word [edi], dx
cmp dword [ebp - 0x18], 8
jae 0x40b2b1
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x2c]
push edx
push edi
call fcn.004f6f30
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
jmp 0x40b2d6
lea eax, [ebp - 0x2c]
jmp 0x40b229
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
jmp 0x40b2d6
cmp dword [ebp - 0x18], 8
jb 0x40b2d6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004f77ab
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.004f6bad
mov esp, ebp
pop ebp
ret