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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6708
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4db06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x10002
mov dword [ebp - 0x14], 0xffffffff
call fcn.00487989
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebx], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x7f4], eax
jle 0x4148f3
mov eax, dword [esi + 0x7f8]
mov eax, dword [eax]
mov edi, dword [eax + 0x10]
jmp 0x4148f5
xor edi, edi
cmp word [edi + 2], 0x3a
jne 0x41491f
cmp word [edi + 4], 0x5c
je 0x41491f
push 3
push edi
mov ecx, 0x3c
call fcn.0045fe50
push eax
mov ecx, esi
call fcn.0041a620
xor esi, esi
jmp 0x414bf4
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x844]
push 0x8000
push edi
call dword [sym.imp.KERNEL30.dll_GetFullPathNameW]
test eax, eax
jne 0x41494f
push 1
push edi
push str.GetFullPathName
mov ecx, esi
call fcn.0041a620
xor esi, esi
jmp 0x414bf4
mov ecx, dword [esi + 0x844]
mov edx, ecx
call fcn.00464ef0
mov ecx, dword [esi + 0x844]
mov edx, ebx
mov dword [ebp - 0x14], 0xffffffff
call fcn.0045c7b0
push ebx
lea ecx, [esi + 0x7e0]
call fcn.0045b9b0
mov eax, dword [esi + 0x7f4]
lea ecx, [eax - 1]
cmp ecx, eax
jge 0x414997
mov eax, dword [esi + 0x7f8]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax + 0x10]
jmp 0x414999
xor edi, edi
mov dword [esi + 0x8e8], 0xffffffff
test edi, edi
je 0x4149af
cmp edi, dword [esi + 0x8e4]
je 0x4149ea
mov eax, dword [esi + 0x8e4]
test eax, eax
je 0x4149cc
push eax
call fcn.00487954
add esp, 4
mov dword [esi + 0x8e4], 0
mov dword [esi + 0x8e8], 0xffffffff
test edi, edi
je 0x4149ea
or edx, 0xffffffff
mov ecx, edi
call fcn.00412580
mov dword [esi + 0x8e4], eax
mov eax, dword [esi + 0x7f4]
cmp eax, 2
jl 0x414a27
test eax, eax
jle 0x414a27
mov edx, dword [esi + 0x7f8]
mov ecx, dword [edx + eax*4 - 4]
test ecx, ecx
je 0x414a19
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi + 0x7f4]
mov edx, dword [esi + 0x7f8]
mov dword [edx + eax*4 - 4], 0
dec dword [esi + 0x7f4]
mov ecx, dword [esi + 0x844]
mov edx, ecx
call fcn.00464df0
push dword [esi + 0x844]
mov dword [esi + 0x85c], eax
call dword [sym.imp.KERNEL30.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x414a55
mov dword [esi + 0x698], 5
test al, 0x10
jne 0x414a74
push 3
push dword [esi + 0x844]
mov ecx, esi
push str.Not_a_directory
call fcn.0041a620
xor esi, esi
jmp 0x414bf4
mov ecx, dword [esi + 0x844]
mov eax, ebx
mov dword [ebp - 0x14], 0xffffffff
mov edx, 0x7fff
movzx edi, word [ecx]
test di, di
je 0x414a9e
mov word [eax], di
dec edx
add eax, 2
add ecx, 2
test edx, edx
jg 0x414a88
xor ecx, ecx
mov edx, ebx
mov word [eax], cx
mov ecx, dword [esi + 0x844]
push SysReAllocString
push 0x4c1430
call fcn.00462880
mov edx, dword [esi + 0x844]
add esp, 8
mov ecx, edx
mov eax, ebx
mov di, word [eax]
cmp di, word [ecx]
jne 0x414aed
test di, di
je 0x414ae9
mov di, word [eax + 2]
cmp di, word [ecx + 2]
jne 0x414aed
add eax, 4
add ecx, 4
test di, di
jne 0x414ac7
xor eax, eax
jmp 0x414af2
sbb eax, eax
or eax, 1
test eax, eax
je 0x414b03
cmp dword [esi + 0x7d4], 1
jg 0x414b03
xor eax, eax
jmp 0x414b08
mov eax, 1
mov dword [esi + 0x860], eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414b11
sub edx, ecx
mov edi, 0x4c1430
sar edx, 1
mov ecx, edi
mov dword [esi + 0x854], edx
mov eax, dword [esi + 0x8e4]
test eax, eax
cmovne ecx, eax
push ecx
mov ecx, esi
call fcn.004145f0
mov dword [esi + 0x8dc], eax
mov ecx, esi
mov eax, dword [esi + 0x8e4]
test eax, eax
cmovne edi, eax
lea eax, [esi + 0x8c0]
push eax
push edi
call fcn.00414810
mov dword [esi + 0x8bc], eax
mov eax, dword [esi + 0x8dc]
test al, 0x10
je 0x414b7a
or ecx, 0xffffffff
mov eax, SysReAllocString
jmp 0x414b98
test al, 5
je 0x414b8c
mov ecx, dword [esi + 0x6e8]
mov eax, dword [esi + 0x6ec]
jmp 0x414b98
mov ecx, dword [esi + 0x6f0]
mov eax, dword [esi + 0x6f4]
push dword [esi + 0x6f4]
mov dword [esi + 0x880], ecx
push dword [esi + 0x6f0]
mov dword [esi + 0x884], eax
push dword [esi + 0x6ec]
push dword [esi + 0x6e8]
push eax
push ecx
push str.minSize___lld__ntfs_lld_fat_lld__n
call fcn.0045f780
mov ecx, dword [esi + 0x844]
add esp, 0x1c
mov edx, dword [esi + 0x848]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx], ax
lea edx, [edx + 2]
test ax, ax
jne 0x414bd7
mov ecx, esi
call fcn.00414c20
mov esi, 1
push ebx
call fcn.00487954
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret