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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c7c8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10207514]
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 dword [ebp - 0x38], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x2c], eax
je 0x100f9ced
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100f9b5a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100f9ced
mov eax, dword [ebp - 0x2c]
mov ecx, edi
mov byte [eax], 1
cmp dword [edi + 0x14], 8
jb 0x100f9b7a
mov ecx, dword [edi]
mov eax, dword [ebp - 0x30]
push 0
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
push 2
push 0x400
push ecx
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x100f9c50
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [eax], 0
call fcn.10007940
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x28]
push eax
push edi
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 0
push eax
call fcn.100f9820
mov ecx, eax
mov eax, dword [ecx]
mov dword [esi], eax
cmp dword [esi], 0
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
jne 0x100f9c25
cmp dword [ebp - 0x18], 0
je 0x100f9c25
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x3c]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push edi
push dword [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 2
push 0x400
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x100f9c39
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.100078b0
jmp 0x100f9cf3
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [eax], 1
mov dword [ebp - 4], 0xffffffff
call fcn.100078b0
jmp 0x100f9c53
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
je 0x100f9cf3
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 6
push dword [edi]
mov edi, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
call edi
test eax, eax
jne 0x100f9c89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x100f9cf3
push 0x10211cb8
push dword [ebp - 0x2c]
call fcn.10162982
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x100f9ca7
mov dword [esi], 0xa8003d
jmp 0x100f9cf3
push dword [ebp - 0x2c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
push dword [ebx]
mov eax, dword [ebp - 0x30]
push 0
push 6
push dword [eax]
call edi
test eax, eax
jne 0x100f9ce5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
push dword [ebx]
call fcn.1016297d
add esp, 4
mov dword [ebx], 0
jmp 0x100f9cf3
mov dword [esi], 0
jmp 0x100f9cf3
mov dword [esi], 0xa80038
mov eax, esi
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.10161f63
mov esp, ebp
pop ebp
ret 0x18