Function at 0x437380
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7353
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d57fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x68], edi
cmp dword [eax + 0x14], 8
jb 0x4373be
mov eax, dword [eax]
push 0
push 0x2200000
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
jne 0x43750e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4374be
cmp eax, 3
je 0x4374be
mov dword [edi], 0
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
mov byte [edi + 4], 1
call fcn.0041b490
add esp, 8
push 0x1e
push str.Unable_to_open_reparse_point:
push 0
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0041b250
sub esp, 0xc
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
push eax
call fcn.0041a290
lea eax, [edi + 8]
push eax
call fcn.004361a0
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x43749d
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437493
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437a06
push edx
push ecx
call fcn.00461556
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00403ea0
mov eax, edi
jmp 0x437730
sub esp, 0xc
mov dword [edi], 0
mov esi, esp
mov byte [edi + 4], 0
lea eax, [esi + 4]
mov dword [ebp - 0x64], str.Path_doesnt_exist
xorps xmm0, xmm0
mov byte [ebp - 0x60], 1
push eax
mov dword [esi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [ebp - 0x64]
push eax
call fcn.00463d6e
add esp, 8
mov dword [esi], vtable.std::invalid_argument.0
lea eax, [edi + 8]
push eax
call fcn.00436140
add esp, 0x10
mov eax, edi
jmp 0x437730
mov dword [ebp - 0x60], eax
push 0x1c
mov dword [ebp - 4], 3
mov dword [ebp - 0x84], 0
call fcn.00461526
mov edi, eax
xorps xmm0, xmm0
add esp, 4
mov dword [ebp - 0x7c], edi
lea eax, [edi + 0x1c]
movups xmmword [edi], xmm0
mov esi, eax
mov dword [ebp - 0x6c], eax
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x74], eax
mov dword [edi + 0x18], 0
mov dword [ebp - 0x78], esi
push 0
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
push 0x1c
push edi
push 0
push 0
push 0x900a8
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43760e
nop dword [eax + eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
cmp ecx, 0x7a
je 0x437599
cmp ecx, 0xea
jne 0x437699
mov eax, esi
sub eax, edi
lea ecx, [eax + 0x64]
cmp ecx, eax
jae 0x4375a9
lea esi, [ecx + edi]
jmp 0x4375e2
jbe 0x4375e5
mov eax, dword [ebp - 0x6c]
sub eax, edi
cmp ecx, eax
jbe 0x4375d2
lea eax, [ebp - 0x7d]
push eax
push ecx
lea ecx, [ebp - 0x7c]
lfence
call fcn.00435980
mov eax, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 0x6c], eax
jmp 0x4375e5
push 0x64
push 0
push esi
call fcn.004638a0
add esp, 0xc
add esi, 0x64
mov dword [ebp - 0x78], esi
push 0
lea ecx, [ebp - 0x84]
mov eax, esi
push ecx
sub eax, edi
push eax
push edi
push 0
push 0
push 0x900a8
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x437580
mov eax, dword [edi]
test eax, eax
jns 0x437982
cmp eax, 0xa0000003
je 0x4378f7
cmp eax, 0xa000000c
jne 0x437982
push 0x18
call fcn.00461526
mov edx, eax
add esp, 4
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 8
test edx, edx
je 0x4378cc
movzx eax, word [edi + 0xa]
xor esi, esi
movzx ecx, word [edi + 8]
shr eax, 1
shr ecx, 1
add eax, 0xa
add eax, ecx
mov dword [edx], 0
add ecx, 0xa
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], si
lea eax, [edi + eax*2]
lea ecx, [edi + ecx*2]
cmp ecx, eax
je 0x4378ce
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, edx
call fcn.00408a50
mov edx, dword [ebp - 0x5c]
jmp 0x4378ce
mov eax, dword [ebp - 0x68]
mov dword [eax], 0
cmp ecx, 0x1126
jne 0x43774b
sub esp, 0xc
mov byte [eax + 4], 0
mov esi, esp
mov dword [ebp - 0x64], str.Path_is_not_a_reparse_point
lea eax, [esi + 4]
mov byte [ebp - 0x60], 1
xorps xmm0, xmm0
push eax
mov dword [esi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [ebp - 0x64]
push eax
call fcn.00463d6e
mov dword [esi], vtable.std::invalid_argument.0
add esp, 8
mov esi, dword [ebp - 0x68]
lea eax, [esi + 8]
push eax
call fcn.00436140
add esp, 0x10
test edi, edi
je 0x437725
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x43771b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437a0b
push ecx
push edi
call fcn.00461556
add esp, 8
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461564
mov esp, ebp
pop ebp
ret
mov byte [eax + 4], 1
lea eax, [ebp - 0x13]
push ecx
push eax
mov byte [ebp - 4], 5
call fcn.0041a020
lea ecx, [ebp - 0x13]
mov dword [ebp - 0x58], 0
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp eax, ecx
je 0x43778c
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00408930
push 0x1f
push str.Cannot_get_reparse_point_info:
push 0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.0041b250
sub esp, 0xc
mov byte [ebp - 0x60], 1
mov esi, esp
lea ecx, [ebp - 0x40]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
xorps xmm0, xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [esi + 4]
cmp dword [ebp - 0x2c], 0x10
push eax
cmovae ecx, dword [ebp - 0x40]
mov dword [esi], vtable.std::exception.0
movq qword [eax], xmm0
lea eax, [ebp - 0x64]
push eax
mov dword [ebp - 0x64], ecx
call fcn.00463d6e
mov dword [esi], vtable.std::runtime_error.0
add esp, 8
mov esi, dword [ebp - 0x68]
lea eax, [esi + 8]
push eax
call fcn.004361a0
add esp, 0x10
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x437840
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x437836
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437a0b
push edx
push ecx
call fcn.00461556
add esp, 8
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
cmp edx, 0x10
jb 0x437886
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43787c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437a0b
push edx
push ecx
call fcn.00461556
add esp, 8
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
test edi, edi
je 0x437725
mov ecx, dword [ebp - 0x6c]
mov eax, edi
sub ecx, edi
cmp ecx, 0x1000
jb 0x43771b
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x437a0b
jmp 0x43771b
xor edx, edx
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x5c], 0
lea eax, [esi + 8]
mov dword [esi], edx
push eax
mov byte [esi + 4], 0
call fcn.0046130c
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00430f80
jmp 0x4376f8
push 0x18
call fcn.00461526
mov edx, eax
add esp, 4
mov dword [ebp - 0x5c], edx
mov byte [ebp - 4], 9
test edx, edx
je 0x437957
movzx eax, word [edi + 0xa]
xor esi, esi
movzx ecx, word [edi + 8]
shr eax, 1
shr ecx, 1
add eax, 8
add eax, ecx
mov dword [edx], 0
add ecx, 8
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 7
mov word [edx], si
lea eax, [edi + eax*2]
lea ecx, [edi + ecx*2]
cmp ecx, eax
je 0x437959
sub eax, ecx
sar eax, 1
push eax
push ecx
mov ecx, edx
call fcn.00408a50
mov edx, dword [ebp - 0x5c]
jmp 0x437959
xor edx, edx
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x5c], 0
lea eax, [esi + 8]
mov dword [esi], edx
push eax
mov byte [esi + 4], 0
call fcn.0046130c
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.00430f80
jmp 0x4378a0
mov esi, dword [ebp - 0x68]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
mov dword [ebp - 0x7c], vtable.std::exception.0
xorps xmm0, xmm0
mov dword [ebp - 0x64], str.Unknown_reparse_point
mov dword [esi], 0
push eax
mov byte [esi + 4], 1
movq qword [ebp - 0x78], xmm0
mov byte [ebp - 0x60], 1
call fcn.00463d6e
lea eax, [ebp - 0x64]
mov dword [ebp - 0x7c], vtable.std::runtime_error.0
push eax
call fcn.0046130c
push 0x4ce944
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004612e6
lea eax, [ebp - 0x64]
push eax
lea eax, [esi + 8]
push eax
call fcn.004612cf
lea eax, [ebp - 0x64]
push eax
call fcn.004613f7
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], vtable.std::exception.0
push eax
call fcn.00463dd1
add esp, 0x28
jmp 0x4378a0
call fcn.0046d841
call fcn.0046d841
int3