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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x5ff42340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x20]
push edi
xor edi, edi
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 0xe0], eax
cmp ebx, edi
je 0x5fee90dd
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x5fee90dd
cmp dword [ebp + 0xc], edi
je 0x5fee90dd
cmp dword [ebp + 0x10], edi
je 0x5fee90dd
lea ecx, [ebp - 0xdc]
mov dword [esi], edi
mov dword [ebp - 0xc4], edi
mov dword [ebp - 0xc0], edi
call fcn.5fefaabc
cmp byte [ebp + 0x14], 0
jne 0x5fee8b9d
push edi
lea ecx, [ebp - 0xdc]
call fcn.5fefab7f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5fee8c09
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee8be3
test byte [eax + 0x1c], 1
je 0x5fee8be3
cmp byte [eax + 0x19], 2
jb 0x5fee8be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x5ff4320c]
push ebx
push 0x5ff358c4
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee39e5
add esp, 0x18
cmp byte [ebp + 0x14], 0
push 2
pop edi
jne 0x5fee8bf9
push 1
lea ecx, [ebp - 0xdc]
call fcn.5fefab7f
lea ecx, [ebp - 0xdc]
call fcn.5fefaae6
jmp 0x5fee909a
cmp byte [ebp + 0x14], 0
jne 0x5fee8c1c
push 1
lea ecx, [ebp - 0xdc]
call fcn.5fefab7f
push 0x5ff355d4
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xb9], 0
call fcn.5fee9597
push dword [ebp + 0x24]
mov ecx, dword [ebp - 0xe8]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xb9]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0xe4], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.5fee7fb6
mov edi, eax
cmp edi, 1
je 0x5fee8cb0
cmp byte [ebp + 0x24], 0
jne 0x5fee8cb6
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee8c9f
test byte [eax + 0x1c], 1
je 0x5fee8c9f
cmp byte [eax + 0x19], 2
jb 0x5fee8c9f
push edi
push dword [ebp + 0xc]
push ebx
push 0x5ff358c4
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee3a43
add esp, 0x1c
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.5fee92d5
jmp 0x5fee8bf9
cmp byte [ebp + 0x24], 0
je 0x5fee8cbc
mov dword [ebp - 0xe4], edi
cmp byte [ebp - 0xb9], 0
je 0x5fee8cd1
cmp dword [ebp - 0xc], 8
mov ebx, dword [ebp - 0x20]
jae 0x5fee8cd1
lea ebx, [ebp - 0x20]
xor eax, eax
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xf4], eax
cmp byte [ebp + 0x14], al
jne 0x5fee8cf6
push eax
lea ecx, [ebp - 0xdc]
call fcn.5fefab7f
push 0
lea eax, [ebp - 0xc0]
push eax
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0xf8]
push eax
push 0
push 2
push 0x400
push ebx
push 1
call dword [sym.imp.CRYPT32.dll_CryptQueryObject]
test eax, eax
jne 0x5fee8d8a
cmp byte [ebp + 0x14], al
jne 0x5fee8d43
push 1
lea ecx, [ebp - 0xdc]
call fcn.5fefab7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x5ff4320c]
cmp ecx, 0x5ff4320c
je 0x5fee8d79
test byte [ecx + 0x1c], 1
je 0x5fee8d79
cmp byte [ecx + 0x19], 2
jb 0x5fee8d79
push eax
push 0x5ff358c4
push 0xe
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.5fee1570
add esp, 0x14
cmp edi, 1
jne 0x5fee8c9f
push 4
pop edi
jmp 0x5fee8c9f
cmp byte [ebp - 0xb9], 0
je 0x5fee8d9b
or dword [esi], 0x1001
jmp 0x5fee8d9e
or dword [esi], 1
cmp byte [ebp + 0x14], 0
jne 0x5fee8db1
push 1
lea ecx, [ebp - 0xdc]
call fcn.5fefab7f
mov ebx, dword [sym.imp.CRYPT32.dll_CryptMsgGetParam]
xor eax, eax
lea ecx, [ebp - 0xc8]
push ecx
push eax
push eax
push 6
push dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
call ebx
test eax, eax
jne 0x5fee8e14
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee8d82
test byte [eax + 0x1c], 1
je 0x5fee8d82
cmp byte [eax + 0x19], 2
jb 0x5fee8d82
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x5ff4320c]
push 0x5ff358c4
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1570
add esp, 0x14
jmp 0x5fee8d82
lea ecx, [ebp - 0xb8]
call fcn.5fef897b
push dword [ebp - 0xc8]
lea ecx, [ebp - 0xb8]
call fcn.5fef8bb2
mov edi, eax
test edi, edi
jne 0x5fee8e76
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee8e63
test byte [eax + 0x1c], 1
je 0x5fee8e63
cmp byte [eax + 0x19], 2
jb 0x5fee8e63
push 0x5ff358c4
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
push 6
pop edi
lea ecx, [ebp - 0xb8]
call fcn.5fef8ba7
jmp 0x5fee8c9f
lea eax, [ebp - 0xc8]
push eax
push edi
push 0
push 6
push dword [ebp - 0xc0]
call ebx
test eax, eax
jne 0x5fee8ecb
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee8ec7
test byte [eax + 0x1c], 1
je 0x5fee8ec7
cmp byte [eax + 0x19], 2
jb 0x5fee8ec7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x5ff4320c]
push 0x5ff358c4
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1570
add esp, 0x14
push 4
jmp 0x5fee8e65
push 0x70
xor ebx, ebx
lea eax, [ebp - 0x168]
push ebx
push eax
call fcn.5ff1f9d0
mov eax, dword [edi + 4]
mov dword [ebp - 0x150], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x14c], eax
mov eax, dword [edi + 0xc]
add esp, 0xc
mov dword [ebp - 0x164], eax
mov eax, dword [edi + 0x10]
push ebx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x168]
push eax
push 0xb0000
push ebx
push 0x10001
push dword [ebp - 0xc4]
call dword [sym.imp.CRYPT32.dll_CertFindCertificateInStore]
mov dword [ebp - 0xf0], eax
cmp eax, ebx
jne 0x5fee8f79
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee8f65
test byte [eax + 0x1c], 1
je 0x5fee8f65
cmp byte [eax + 0x19], 2
jb 0x5fee8f65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x5ff4320c]
push 0x5ff358c4
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1570
add esp, 0x14
push 4
pop edi
lea ecx, [ebp - 0xb8]
call fcn.5fef8ba7
push ebx
jmp 0x5fee8ca1
or dword [esi], 0x4000
push esi
lea ecx, [ebp - 0xba]
push ecx
push dword [ebp - 0xe0]
mov ecx, dword [ebp - 0xe8]
push dword [ebp + 0x10]
mov byte [ebp - 0xba], bl
push dword [ebp + 0xc]
push eax
call fcn.5fee9beb
xor esi, esi
inc esi
mov edi, eax
cmp dword [ebp + 0x1c], esi
jne 0x5fee8ff5
cmp byte [ebp - 0xba], bl
jne 0x5fee8ff5
push 3
pop edi
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee906e
test byte [eax + 0x1c], 1
je 0x5fee906e
cmp byte [eax + 0x19], 4
jb 0x5fee906e
push 0x5ff358c4
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
jmp 0x5fee906e
cmp edi, esi
je 0x5fee9063
cmp edi, 3
je 0x5fee9033
cmp edi, 0xb
je 0x5fee9033
cmp edi, 0xd
je 0x5fee9033
cmp edi, 0xe
je 0x5fee9033
cmp edi, 0x12
je 0x5fee9033
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee906e
test byte [eax + 0x1c], 1
je 0x5fee906e
cmp byte [eax + 0x19], 2
jb 0x5fee906e
push 0x5ff358c4
push 0x15
jmp 0x5fee8fe5
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee906e
test byte [eax + 0x1c], 1
je 0x5fee906e
cmp byte [eax + 0x19], 4
jb 0x5fee906e
push edi
push 0x5ff358c4
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5ff14d44
add esp, 0x14
jmp 0x5fee906e
cmp byte [ebp + 0x24], bl
je 0x5fee906e
mov edi, dword [ebp - 0xe4]
lea ecx, [ebp - 0xb8]
call fcn.5fef8ba7
push ebx
push esi
lea ecx, [ebp - 0x20]
call fcn.5fee92d5
lea ecx, [ebp - 0xdc]
call fcn.5fefaae6
push dword [ebp - 0xf0]
call dword [sym.imp.CRYPT32.dll_CertFreeCertificateContext]
xor esi, esi
cmp dword [ebp - 0xc4], esi
je 0x5fee90b7
push esi
push dword [ebp - 0xc4]
call dword [sym.imp.CRYPT32.dll_CertCloseStore]
mov dword [ebp - 0xc4], esi
cmp dword [ebp - 0xc0], esi
je 0x5fee90cb
push dword [ebp - 0xc0]
call dword [sym.imp.CRYPT32.dll_CryptMsgClose]
cmp edi, 1
je 0x5fee90d9
mov eax, dword [ebp - 0xe0]
mov byte [eax], 0
mov eax, edi
jmp 0x5fee910d
mov eax, dword [0x5ff4320c]
cmp eax, 0x5ff4320c
je 0x5fee910a
test byte [eax + 0x1c], 1
je 0x5fee910a
cmp byte [eax + 0x19], 2
jb 0x5fee910a
push 0x5ff358c4
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.5fee1540
add esp, 0x10
push 5
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5ff1e70e
leave
ret 0x20