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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101c0018
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10221008]
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 0x100d09ac
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x100d081a
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100d09ac
mov eax, dword [ebp - 0x2c]
mov ecx, edi
mov byte [eax], 1
cmp dword [edi + 0x14], 8
jb 0x100d083a
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 0x100d090f
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [eax], 0
call fcn.10004880
mov eax, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
push eax
push edi
lea eax, [ebp - 0x4c]
push eax
call fcn.100d04e0
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 0x100d08e4
cmp dword [ebp - 0x18], 0
je 0x100d08e4
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 0x100d08f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.10004780
jmp 0x100d09b2
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
mov byte [eax], 1
mov dword [ebp - 4], 0xffffffff
call fcn.10004780
jmp 0x100d0912
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp byte [eax], 0
je 0x100d09b2
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 0x100d0948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
jmp 0x100d09b2
push 0x10227100
push dword [ebp - 0x2c]
call fcn.1018bdd6
add esp, 8
mov dword [ebx], eax
test eax, eax
jne 0x100d0966
mov dword [esi], 0xa8003d
jmp 0x100d09b2
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 0x100d09a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
push dword [ebx]
call fcn.1018bacf
add esp, 4
mov dword [ebx], 0
jmp 0x100d09b2
mov dword [esi], 0
jmp 0x100d09b2
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.1018b6f4
mov esp, ebp
pop ebp
ret 0x18