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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 1
push eax
mov dword [ebp - 4], 0xffffffff
xor edi, edi
call sym.vmtools.dll_Unicode_GetAllocBytes
add esp, 8
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000c636
test al, 0x10
je 0x1000c636
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 4]
push ecx
push 1
push 8
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
push eax
call ebx
test eax, eax
jne 0x1000c520
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1000c49e
mov bl, 1
jmp 0x1000c638
cmp eax, 0x3f0
je 0x1000c4bd
push eax
push str.FileIsWritableDir
push str.FILE:__s:_Cannot_get_the_thread_access_token__error__d_._n
call sym.vmtools.dll_Warning
add esp, 0xc
jmp 0x1000c636
push 2
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
test eax, eax
jne 0x1000c4e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FileIsWritableDir
push str.FILE:__s:_Unable_to_impersonate_self__error__d_._n
call sym.vmtools.dll_Warning
add esp, 0xc
jmp 0x1000c636
lea edx, [ebp - 4]
push edx
push 1
push 8
call esi
push eax
call ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
test esi, esi
jne 0x1000c520
push ebx
push str.FileIsWritableDir
push str.FILE:__s:_Cannot_get_the_process_access_token__error__d_._n
call sym.vmtools.dll_Warning
add esp, 0xc
jmp 0x1000c636
mov esi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_GetFileSecurityW]
lea eax, [ebp - 8]
push eax
push 0
push 0
push 7
push esi
call ebx
test eax, eax
jne 0x1000c579
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000c608
mov ecx, dword [ebp - 8]
push ecx
push edi
call dword [sym.imp.MSVCR90.dll_realloc]
mov edi, eax
add esp, 8
test edi, edi
je 0x1000c624
mov eax, dword [ebp - 8]
lea edx, [ebp - 8]
push edx
push eax
push edi
push 7
push esi
call ebx
test eax, eax
je 0x1000c540
cmp dword [edi + 8], 0
jne 0x1000c58c
cmp dword [edi + 4], 0
jne 0x1000c58c
mov bl, 1
jmp 0x1000c638
lea ecx, [ebp - 0x2c]
mov eax, 0x120116
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0x2c], 0x120089
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x1200a0
mov dword [ebp - 0x20], 0x1201bf
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_MapGenericMask]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
push edi
mov dword [ebp - 0x14], 0x14
call dword [sym.imp.ADVAPI32.dll_AccessCheck]
test eax, eax
jne 0x1000c603
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.FileIsWritableDir
push str.FILE:__s:_Unable_to_check_access_rights__error__d_._n
call sym.vmtools.dll_Warning
add esp, 0xc
jmp 0x1000c636
mov bl, byte [ebp - 0x18]
jmp 0x1000c638
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.FileIsWritableDir
push str.FILE:__s:_Cannot_get_the_directorys_security_descriptor.Directory_is___S___error_is__d._n
call sym.vmtools.dll_Warning
add esp, 0x10
jmp 0x1000c636
push str.FileIsWritableDir
push str.FILE:__s:_Couldnt_realloc_n
call sym.vmtools.dll_Warning
add esp, 8
xor bl, bl
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.MSVCR90.dll_free]
push ecx
call esi
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, 0xffffffff
je 0x1000c656
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret