Function at 0x58d280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adbbb
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov esi, dword [ebp + 0xc]
push 0x20a
push 0
push eax
mov dword [ebp - 0x24c], 0
call fcn.004c76f0
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x58d5aa
push ecx
lea ecx, [ebp - 0x21c]
call fcn.00584e30
add esp, 4
cmp eax, 0x105
jae 0x58d5aa
mov ecx, edi
mov dword [ebp - 0x224], 0
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x58d330
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x234]
call fcn.004459d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
mov ecx, dword [ebp - 0x220]
mov edi, 0x22
mov edx, dword [ebp - 0x234]
cmp ecx, 8
cmovae eax, edx
cmp di, word [eax]
jne 0x58d3d9
cmp ecx, 8
lea eax, [ebp - 0x234]
cmovae eax, edx
push eax
call fcn.00446a00
add esp, 4
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004b0e20
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push eax
call fcn.00446a00
mov ecx, dword [ebp - 0x224]
add esp, 4
lea eax, [eax + ecx*2]
add eax, 0xfffffffe
lea ecx, [ebp - 0x234]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.004b0e20
mov dword [ebp - 0x248], 0
push ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x248]
call fcn.00581310
push 0
test eax, eax
jne 0x58d554
push str.WinVerifyTrustEx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x248]
call fcn.00581290
test eax, eax
je 0x58d457
push 0
push 0
push eax
push str.CHModuleMgr::STGetProcAddress
push 0x45
push 0xe2
push str.C:drone_src_srcCommonCryptVerifyFileSignatureWindows.cpp
push str.CVerifyFileSignatureWindows::CheckFileSignature
call fcn.00573980
add esp, 0x20
lea ecx, [ebp - 0x248]
mov esi, 0xfe21000b
call fcn.00581240
jmp 0x58d57a
push 0x30
push 0
push esi
call fcn.004c76f0
push 0x10
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.004c76f0
add esp, 0x18
mov dword [esi], 0x30
cmp dword [ebp - 0x220], 8
lea eax, [ebp - 0x25c]
mov dword [esi + 0x18], eax
lea eax, [ebp - 0x234]
cmovae eax, dword [ebp - 0x234]
push esi
mov dword [ebp - 0x258], eax
lea eax, [ebp - 0x244]
mov dword [esi + 0xc], 2
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x1c], 1
mov dword [esi + 0x28], 0x10
mov esi, dword [ebp - 0x24c]
mov ecx, esi
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x25c], 0x10
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x244], 0xaac56b
mov dword [ebp - 0x240], 0x11d0cd44
mov dword [ebp - 0x23c], 0xc000c28c
mov dword [ebp - 0x238], 0xee95c24f
call dword [0x5c3794]
call esi
mov esi, eax
test esi, esi
jns 0x58d53f
push 0
push 0
push esi
push str.WinVerifyTrustEx
push 0x45
push 0xfc
push str.C:drone_src_srcCommonCryptVerifyFileSignatureWindows.cpp
push str.CVerifyFileSignatureWindows::CheckFileSignature
call fcn.00573980
add esp, 0x20
push esi
call fcn.0058d200
lea ecx, [ebp - 0x248]
mov esi, eax
call fcn.00581240
jmp 0x58d57a
push 0
push eax
push str.CHModuleMgr::STLoadLibrary
push 0x45
push 0x106
push str.C:drone_src_srcCommonCryptVerifyFileSignatureWindows.cpp
push str.CVerifyFileSignatureWindows::CheckFileSignature
call fcn.00573980
add esp, 0x20
mov esi, 0xfe21000b
lea ecx, [ebp - 0x248]
call fcn.005813f0
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x58d5a6
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x234]
call fcn.00446620
add esp, 8
mov eax, esi
jmp 0x58d5af
mov eax, 0xfe21000b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 8