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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5e51
mov eax, dword fs:[0]
push eax
sub esp, 0x188
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, ecx
cmp byte [esi + 0x11c], 0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x190], eax
lea eax, [esi + 0xc]
mov dword [ebp - 0x194], edi
jne 0x414ae1
mov eax, dword [esi + 8]
sub esp, 0x10
lea ebx, [eax + 4]
lea ecx, [ebp - 0x134]
push 0
push ebx
call fcn.0040f6f0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x130], 2
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x12c]
jb 0x414bbe
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
cmp word [eax + 6], 0x3a
je 0x414b4c
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
cmp word [eax + 4], 0x5c
jne 0x414bbe
test dl, dl
lea eax, [ebp - 0x128]
cmove eax, ecx
cmp word [eax + 6], 0x5c
jne 0x414bbe
call fcn.004339a0
test al, al
jne 0x414b89
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
cmp byte [ebp - 0x18], 0
jne 0x414b85
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x414b85
push eax
call fcn.0049c7b1
add esp, 4
xor bl, bl
jmp 0x414be8
mov ecx, ebx
call fcn.00433cd0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
test eax, eax
je 0x414b66
cmp byte [ebp - 0x18], 0
jne 0x414be6
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x414be6
push eax
jmp 0x414bde
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
test dl, dl
jne 0x414be6
lea eax, [ebp - 0x128]
cmp ecx, eax
je 0x414be6
push ecx
call fcn.0049c7b1
add esp, 4
mov bl, 1
mov ecx, esi
call fcn.00410050
test al, al
jne 0x414cd3
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x414c05
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414cd7
shr eax, 4
not al
and al, 1
je 0x414cd7
test bl, bl
je 0x414cd3
lea ecx, [ebp - 0x18c]
call fcn.00438940
mov dword [ebp - 4], 2
lea eax, [esi + 0xc]
cmp byte [esi + 0x11c], 0
jne 0x414c4e
mov eax, dword [esi + 8]
add eax, 4
push eax
call fcn.00438af0
mov edi, eax
mov eax, dword [ebp - 0x194]
test eax, eax
je 0x414c65
mov dword [eax], edi
test edi, edi
je 0x414cc8
cmp byte [esi + 0x11c], 0
lea ebx, [esi + 0xc]
jne 0x414c78
mov ebx, dword [esi + 8]
mov ecx, dword [ebp - 0x190]
push 0x503cc8
call fcn.004062d0
push edi
mov esi, eax
push 0x502564
push esi
call fcn.00405280
push 0x503cd8
push 0x50258c
push esi
call fcn.00405280
lea eax, [ebx + 4]
push eax
push 0x50258c
push esi
call fcn.00405280
add esp, 0x24
lea ecx, [ebp - 0x18c]
call fcn.004382d0
jmp 0x414d4b
lea ecx, [ebp - 0x18c]
call fcn.004382d0
mov al, 1
jmp 0x414d4d
test edi, edi
je 0x414ce1
mov dword [edi], 1
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x414cf0
mov eax, dword [esi + 8]
sub esp, 0x10
lea ecx, [ebp - 0x134]
add eax, 4
push 0
push eax
call fcn.0040f6f0
mov ecx, dword [ebp - 0x190]
lea eax, [ebp - 0x134]
push eax
push str.b_rN0R
mov dword [ebp - 4], 1
call fcn.0040f2e0
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x414d4b
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x414d4b
push eax
call fcn.0049c7b1
add esp, 4
xor al, al
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 8