Function at 0x7661cfdc
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetProvParam]
push edi
push 1
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push 2
push dword [ebp + 0xc]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x7661d030
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x7661d16f
cmp eax, 0x57
je 0x7661d16f
cmp eax, 0xea
jne 0x7661d162
mov eax, dword [ebp - 0x14]
cmp eax, ebx
je 0x7661d16f
inc eax
push eax
call fcn.765e44d7
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x7661d1ba
push 1
jmp 0x7661d12b
push dword [ebp - 0x10]
call fcn.766134ce
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x7661d1ba
cmp dword [ebp + 0x14], 1
jne 0x7661d09e
push 0x76612138
push edi
call fcn.765ea38b
test eax, eax
pop ecx
pop ecx
jne 0x7661d0c1
push dword [ebp + 0x18]
mov edi, 0x766120d8
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 8]
push eax
call sym.CRYPT32.dll_CryptAcquireContextU
cmp eax, ebx
je 0x7661d0c7
mov dword [ebp - 0xc], edi
jmp 0x7661d0c3
cmp dword [ebp + 0x14], 0xd
jne 0x7661d0c1
push 0x76612058
push edi
call fcn.765ea38b
test eax, eax
pop ecx
pop ecx
jne 0x7661d0c1
push dword [ebp + 0x18]
mov edi, 0x76611fd0
push 0xd
jmp 0x7661d088
xor eax, eax
cmp eax, ebx
jne 0x7661d0eb
push dword [ebp + 0x18]
lea eax, [ebp - 8]
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push dword [ebp - 4]
push eax
call sym.CRYPT32.dll_CryptAcquireContextU
cmp eax, ebx
jne 0x7661d0eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
jmp 0x7661d11f
xor ebx, ebx
inc ebx
xor edi, edi
push ebx
jmp 0x7661d0fc
cmp ebx, 2
je 0x7661d10e
push 2
pop ebx
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.7661cf5d
test eax, eax
je 0x7661d0f3
xor edi, edi
inc edi
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test edi, edi
jne 0x7661d17c
xor ebx, ebx
push dword [ebp - 4]
call fcn.765e40a0
mov dword [ebp - 4], ebx
push ebx
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
push 2
push dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x7661d054
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x7661d165
cmp eax, 2
je 0x7661d165
push eax
jmp 0x7661d174
cmp dword [ebp - 0x1c], ebx
je 0x7661d16f
push dword [ebp - 0x1c]
jmp 0x7661d174
push 0x103
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x7661d1ba
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
and eax, 0xffffffbf
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 2
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call sym.CRYPT32.dll_CertSetCertificateContextProperty
test eax, eax
jne 0x7661d1be
xor ebx, ebx
xor esi, esi
jmp 0x7661d1c1
xor esi, esi
inc esi
push dword [ebp - 0x10]
call fcn.765e40a0
push dword [ebp - 4]
call fcn.765e40a0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x14