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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0391
mov eax, dword fs:[0]
push eax
mov eax, 0x1260
call fcn.00489960
mov eax, dword [0x513200]
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 esi, edx
mov dword [ebp - 0x1268], esi
mov ebx, ecx
mov dword [ebp - 0x126c], ebx
sub esp, 0x10
lea ecx, [ebp - 0x1134]
push 0
push esi
call fcn.0040e650
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1258]
push 0
push ebx
call fcn.0040e650
mov byte [ebp - 0x1260], 0
mov dword [ebp - 0x1264], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1128]
cmp byte [ebp - 0x1018], 0
mov bl, 1
cmove eax, dword [ebp - 0x112c]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414d02
shr eax, 4
not al
and al, bl
je 0x414d02
push ecx
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x1134]
call fcn.004104b0
test al, al
jne 0x414c81
lea ecx, [ebp - 0x1264]
call fcn.00426320
xor bl, bl
lea ecx, [ebp - 0x1264]
call fcn.00426230
cmp byte [ebp - 0x113c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x414cb8
mov eax, dword [ebp - 0x1250]
lea ecx, [ebp - 0x124c]
cmp eax, ecx
je 0x414cb8
push eax
call fcn.00496f41
add esp, 4
cmp byte [ebp - 0x1018], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x414ce4
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1128]
cmp ecx, eax
je 0x414ce4
push ecx
call fcn.00496f41
add esp, 4
mov al, bl
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.00489940
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1134]
call fcn.0040efb0
test al, al
je 0x414c7f
lea ecx, [ebp - 0x1258]
call fcn.0040efb0
test al, al
jne 0x414d3f
push ecx
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x1258]
call fcn.00410100
test al, al
je 0x414c7f
push esi
lea eax, [ebp - 0x810]
push str._s.
push eax
call fcn.0041cc50
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x5307d8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x414c81
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov edx, 0x4f562c
mov ecx, 0x530804
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x414db6
test ax, ax
je 0x414db2
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x414db6
add ecx, 4
add edx, 4
test ax, ax
jne 0x414d90
xor eax, eax
jmp 0x414dbb
sbb eax, eax
or eax, 1
test eax, eax
je 0x414e51
mov eax, 0x4fdaa0
mov ecx, 0x530804
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x414df6
test dx, dx
je 0x414df2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x414df6
add ecx, 4
add eax, 4
test dx, dx
jne 0x414dd0
xor eax, eax
jmp 0x414dfb
sbb eax, eax
or eax, 1
test eax, eax
je 0x414e51
push 0x530804
push dword [ebp - 0x1268]
lea eax, [ebp - 0x810]
push 0x4fdb58
push eax
call fcn.0041cc50
push 0x530804
push dword [ebp - 0x126c]
lea eax, [ebp - 0x1010]
push 0x4fdb58
push eax
call fcn.0041cc50
add esp, 0x20
lea edx, [ebp - 0x810]
lea ecx, [ebp - 0x1010]
call fcn.00414ba0
neg al
sbb al, al
and bl, al
push 0x5307d8
push esi
call edi
test eax, eax
jne 0x414d80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x414c81