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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101750f0
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x101fe854]
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 - 0x64], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
cmp dword [edi + 0x10], 0
mov dword [ebp - 0x50], eax
je 0x100839fa
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1008383a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100839fa
mov eax, dword [ebp - 0x50]
mov byte [eax], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1008385a
mov eax, dword [edi]
push 0
push dword [ebp - 0x54]
lea ecx, [ebp - 0x68]
push dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 2
push 0x400
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x1008395e
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [eax], 0
call fcn.10004710
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x4c], eax
call fcn.10004e10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.10083490
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.10004610
mov eax, dword [ebp - 0x60]
mov dword [esi], eax
cmp dword [esi], 0
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
jne 0x10083933
cmp dword [ebp - 0x18], 0
je 0x10083933
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push edi
push dword [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push 0
push 2
push 0x400
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x10083947
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10004610
jmp 0x10083a00
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [eax], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10004610
jmp 0x10083961
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp byte [eax], 0
je 0x10083a00
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 0
push 0
push 6
push dword [edi]
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
jne 0x10083995
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x10083a00
push 0x102067ec
push dword [ebp - 0x50]
call fcn.1015f93a
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x100839b3
mov dword [esi], 0xa8003d
jmp 0x10083a00
push dword [ebp - 0x50]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push dword [ebx]
push 0
push 6
push dword [edi]
call dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
test eax, eax
jne 0x100839f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
push dword [ebx]
call fcn.1015f91e
add esp, 4
mov dword [ebx], 0
jmp 0x10083a00
mov dword [esi], 0
jmp 0x10083a00
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.1015f463
mov esp, ebp
pop ebp
ret 0x18