Function at 0x5dedb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x681395
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x78a6d4]
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 eax, edx
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x254], ecx
mov edi, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x5dee06
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 0x10], 0
push 0x20a
mov word [eax], cx
lea eax, [ebp - 0x21c]
push ecx
push eax
call fcn.0058d130
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x5dee47
mov eax, 0x8000ffff
jmp 0x5df18c
xor eax, eax
mov dword [ebp - 0x234], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
lea edx, [ecx + 2]
mov word [ebp - 0x234], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5dee77
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.00447250
push 0xd
push str.wintrust.dll
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 0
call int.0044e0d0
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x260], esi
test esi, esi
je 0x5df11c
push str.WTHelperProvDataFromStateData
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x5def36
sub esp, 0x18
mov ecx, esp
push 0x27
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
push str.Failed_to_entry_point_from_wintrust.dll
mov dword [ecx + 0x14], 0xf
call fcn.0044a410
call fcn.005dec30
add esp, 0x18
mov esi, 0x8000ffff
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5df14e
push str.WTHelperGetProvSignerFromChain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x5deef3
push str.WTHelperGetProvCertFromChain
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 8
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.0058d130
mov eax, dword [ebp - 0x254]
add esp, 0xc
mov ecx, dword [ebp - 0x258]
mov esi, 0x80004005
push dword [eax + 0x20]
call dword [0x6926b4]
call dword [ebp - 0x258]
test eax, eax
je 0x5df0e1
push 0
push 0
push 0
push eax
mov ecx, ebx
call dword [0x6926b4]
call ebx
mov ebx, eax
test ebx, ebx
je 0x5df0d3
mov ecx, dword [ebp - 0x25c]
push 0
push ebx
call dword [0x6926b4]
call dword [ebp - 0x25c]
test eax, eax
je 0x5df05a
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x24c]
call fcn.005decd0
push eax
mov ecx, edi
call fcn.004506b0
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x5df023
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5df019
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5df1a8
push edx
push ecx
call fcn.0058ab22
add esp, 8
cmp dword [edi + 0x10], 0
jne 0x5df087
sub esp, 0x18
mov ecx, esp
push 0x2d
push str.Subject_name_was_not_found_in_the_certificate
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0044a410
call fcn.005dec30
add esp, 0x18
xor esi, esi
jmp 0x5df087
sub esp, 0x18
mov ecx, esp
push 0x28
push str.Trust_provider_certificate_was_not_found
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0044a410
call fcn.005dec30
add esp, 0x18
cmp dword [ebx + 0x20], 0
je 0x5df0c5
lea eax, [ebp - 0x268]
push eax
mov eax, dword [ebx + 0x24]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov edx, dword [ebp - 0x250]
lea ecx, [ebp - 0x268]
call fcn.005df1c0
push dword [ebp - 0x260]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5df14e
sub esp, 0x18
mov ecx, esp
push 0x31
push str.Countersignature_was_not_found_in_the_certificate
jmp 0x5df0ed
sub esp, 0x18
mov ecx, esp
push 0x20
push str.Signer_information_was_not_found
jmp 0x5df0ed
sub esp, 0x18
mov ecx, esp
push 0x24
push str.Certificate_trust_data_was_not_found
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0044a410
call fcn.005dec30
add esp, 0x18
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x5df14e
sub esp, 0x18
mov ecx, esp
push 0x1b
push str.Failed_to_load_wintrust.dll
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
call fcn.0044a410
call fcn.005dec30
add esp, 0x18
mov esi, 0x8000ffff
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x5df18a
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x5df180
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5df1ad
push edx
push ecx
call fcn.0058ab22
add esp, 8
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.0058a893
mov esp, ebp
pop ebp
ret
call fcn.005968cf
call fcn.005968cf
int3