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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c2090
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x10223008]
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 0x100d282a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100d266a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d282a
mov eax, dword [ebp - 0x50]
mov byte [eax], 1
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100d268a
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 0x100d278e
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [eax], 0
call fcn.10004870
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.100050f0
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.100d22c0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
call fcn.10004770
mov eax, dword [ebp - 0x60]
mov dword [esi], eax
cmp dword [esi], 0
mov eax, dword [ebp - 0x5c]
mov dword [esi + 4], eax
jne 0x100d2763
cmp dword [ebp - 0x18], 0
je 0x100d2763
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 0x100d2777
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10004770
jmp 0x100d2830
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
mov byte [eax], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10004770
jmp 0x100d2791
mov edi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x50]
cmp byte [eax], 0
je 0x100d2830
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 0x100d27c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x100d2830
push 0x10229110
push dword [ebp - 0x50]
call fcn.1018dc86
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x100d27e3
mov dword [esi], 0xa8003d
jmp 0x100d2830
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 0x100d2822
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
push dword [ebx]
call fcn.1018d97f
add esp, 4
mov dword [ebx], 0
jmp 0x100d2830
mov dword [esi], 0
jmp 0x100d2830
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.1018d5a4
mov esp, ebp
pop ebp
ret 0x18