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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x402680
push 0x2000001
call fcn.004042f8
add esp, 4
push 0
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x402ca0
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffef
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4026bc
cmp dword [ebp - 8], 0
je 0x4026bc
test byte [ebp - 5], 0x80
jne 0x4026bc
test dword [ebp - 8], 0x80000002
je 0x4026c5
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xffffffdf
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4026fb
cmp dword [ebp - 8], 0
je 0x4026fb
test byte [ebp - 5], 0x80
jne 0x4026fb
test dword [ebp - 8], 0x80000002
je 0x402704
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffdf
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x40273c
cmp dword [ebp - 8], 0
je 0x40273c
test byte [ebp - 5], 0x80
jne 0x40273c
test dword [ebp - 8], 0x80000002
je 0x402745
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffee
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x40277d
cmp dword [ebp - 8], 0
je 0x40277d
test byte [ebp - 5], 0x80
jne 0x40277d
test dword [ebp - 8], 0x80000002
je 0x402786
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xeffffffe
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4027be
cmp dword [ebp - 8], 0
je 0x4027be
test byte [ebp - 5], 0x80
jne 0x4027be
test dword [ebp - 8], 0x80000002
je 0x4027c7
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffff
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4027ff
cmp dword [ebp - 8], 0
je 0x4027ff
test byte [ebp - 5], 0x80
jne 0x4027ff
test dword [ebp - 8], 0x80000002
je 0x402808
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffcf
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402840
cmp dword [ebp - 8], 0
je 0x402840
test byte [ebp - 5], 0x80
jne 0x402840
test dword [ebp - 8], 0x80000002
je 0x402849
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xffffffee
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x40287f
cmp dword [ebp - 8], 0
je 0x40287f
test byte [ebp - 5], 0x80
jne 0x40287f
test dword [ebp - 8], 0x80000002
je 0x402888
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xfffffffe
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4028be
cmp dword [ebp - 8], 0
je 0x4028be
test byte [ebp - 5], 0x80
jne 0x4028be
test dword [ebp - 8], 0x80000002
je 0x4028c7
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xffffffcf
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4028fd
cmp dword [ebp - 8], 0
je 0x4028fd
test byte [ebp - 5], 0x80
jne 0x4028fd
test dword [ebp - 8], 0x80000002
je 0x402906
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffaf
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x40293e
cmp dword [ebp - 8], 0
je 0x40293e
test byte [ebp - 5], 0x80
jne 0x40293e
test dword [ebp - 8], 0x80000002
je 0x402947
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xffffffdf
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x40297d
cmp dword [ebp - 8], 0
je 0x40297d
test byte [ebp - 5], 0x80
jne 0x40297d
test dword [ebp - 8], 0x80000002
je 0x402986
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffff9f
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4029be
cmp dword [ebp - 8], 0
je 0x4029be
test byte [ebp - 5], 0x80
jne 0x4029be
test dword [ebp - 8], 0x80000002
je 0x4029c7
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffae
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x4029ff
cmp dword [ebp - 8], 0
je 0x4029ff
test byte [ebp - 5], 0x80
jne 0x4029ff
test dword [ebp - 8], 0x80000002
je 0x402a08
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffbe
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402a40
cmp dword [ebp - 8], 0
je 0x402a40
test byte [ebp - 5], 0x80
jne 0x402a40
test dword [ebp - 8], 0x80000002
je 0x402a49
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffffff
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402a81
cmp dword [ebp - 8], 0
je 0x402a81
test byte [ebp - 5], 0x80
jne 0x402a81
test dword [ebp - 8], 0x80000002
je 0x402a8a
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xefffff8f
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402ac2
cmp dword [ebp - 8], 0
je 0x402ac2
test byte [ebp - 5], 0x80
jne 0x402ac2
test dword [ebp - 8], 0x80000002
je 0x402acb
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xffffffae
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402b01
cmp dword [ebp - 8], 0
je 0x402b01
test byte [ebp - 5], 0x80
jne 0x402b01
test dword [ebp - 8], 0x80000002
je 0x402b0a
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xfffffffe
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402b40
cmp dword [ebp - 8], 0
je 0x402b40
test byte [ebp - 5], 0x80
jne 0x402b40
test dword [ebp - 8], 0x80000002
je 0x402b49
mov byte [ebp - 4], 1
jmp 0x402b83
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xffffff8f
mov dword [ebp - 8], eax
test byte [ebp - 8], 0xe
jne 0x402b7f
cmp dword [ebp - 8], 0
je 0x402b7f
test byte [ebp - 5], 0x80
jne 0x402b7f
test dword [ebp - 8], 0x80000002
je 0x402b83
mov byte [ebp - 4], 1
xor eax, eax
mov al, byte [ebp - 4]
test eax, eax
jne 0x402bb1
push 0x2000001
call fcn.004042f8
add esp, 4
push 0
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x402ca0
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x402c25
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402be0
test byte [ebp - 0xc], 0x10
jne 0x402c25
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.0041bdf0
add esp, 4
test eax, eax
je 0x402c1c
push 0x2000001
call fcn.004042f8
add esp, 4
push 0
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x402ca0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x402c99
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x402c54
test byte [ebp - 0xc], 0x10
jne 0x402c99
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
push eax
call fcn.0041bdf0
add esp, 4
test eax, eax
je 0x402c90
push 0x2000001
call fcn.004042f8
add esp, 4
push 0
call fcn.0040435c
add esp, 4
mov eax, 0xffffffff
jmp 0x402ca0
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor eax, eax
jmp 0x402ca0
pop edi
pop esi
pop ebx
leave
ret