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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5f81
mov eax, dword fs:[0]
push eax
mov eax, 0x1260
call fcn.0048f1d0
mov eax, dword [0x519220]
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.0040f6f0
sub esp, 0x10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1258]
push 0
push ebx
call fcn.0040f6f0
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 0x415fe2
shr eax, 4
not al
and al, bl
je 0x415fe2
push ecx
lea eax, [ebp - 0x1258]
push eax
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x1134]
call fcn.00411550
test al, al
jne 0x415f61
lea ecx, [ebp - 0x1264]
call fcn.004288e0
xor bl, bl
lea ecx, [ebp - 0x1264]
call fcn.004287f0
cmp byte [ebp - 0x113c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x415f98
mov eax, dword [ebp - 0x1250]
lea ecx, [ebp - 0x124c]
cmp eax, ecx
je 0x415f98
push eax
call fcn.0049c7b1
add esp, 4
cmp byte [ebp - 0x1018], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x415fc4
mov ecx, dword [ebp - 0x112c]
lea eax, [ebp - 0x1128]
cmp ecx, eax
je 0x415fc4
push ecx
call fcn.0049c7b1
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.0048f1b0
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1134]
call fcn.00410050
test al, al
je 0x415f5f
lea ecx, [ebp - 0x1258]
call fcn.00410050
test al, al
jne 0x41601f
push ecx
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x1258]
call fcn.004111a0
test al, al
je 0x415f5f
push esi
lea eax, [ebp - 0x810]
push str._s.
push eax
call fcn.0041ec50
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x536cd8
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x415f61
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
nop word [eax + eax]
mov edx, 0x4fb6dc
mov ecx, 0x536d04
nop word [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x416096
test ax, ax
je 0x416092
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x416096
add ecx, 4
add edx, 4
test ax, ax
jne 0x416070
xor eax, eax
jmp 0x41609b
sbb eax, eax
or eax, 1
test eax, eax
je 0x416131
mov eax, 0x503c60
mov ecx, 0x536d04
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x4160d6
test dx, dx
je 0x4160d2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x4160d6
add ecx, 4
add eax, 4
test dx, dx
jne 0x4160b0
xor eax, eax
jmp 0x4160db
sbb eax, eax
or eax, 1
test eax, eax
je 0x416131
push 0x536d04
push dword [ebp - 0x1268]
lea eax, [ebp - 0x810]
push 0x503f00
push eax
call fcn.0041ec50
push 0x536d04
push dword [ebp - 0x126c]
lea eax, [ebp - 0x1010]
push 0x503f00
push eax
call fcn.0041ec50
add esp, 0x20
lea edx, [ebp - 0x810]
lea ecx, [ebp - 0x1010]
call fcn.00415e80
neg al
sbb al, al
and bl, al
push 0x536cd8
push esi
call edi
test eax, eax
jne 0x416060
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x415f61