Function at 0x5af130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d57e5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x638fe4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00418413
mov ecx, eax
test ecx, ecx
jne 0x5af181
push 0x80004005
call fcn.00402650
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x5af196
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x5af198
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
mov ecx, dword [edi]
mov dword [ebp - 0x14], 1
cmp dword [ecx - 0xc], 0
jge 0x5af1bd
push 0x80070057
call fcn.00402650
cmp word [ecx], 0x40
jne 0x5af3a8
mov eax, str._Evernote
lea esp, [esp]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x5af1f6
test dx, dx
je 0x5af1f2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x5af1f6
add ecx, 4
add eax, 4
test dx, dx
jne 0x5af1d0
xor eax, eax
jmp 0x5af1fb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x5af232
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsEvernote.exe
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5af403
mov edx, 0x60ab98
jmp 0x5af31d
push str._DropBox
push edi
call fcn.004044f0
add esp, 8
test al, al
je 0x5af2c1
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5af266
push 0x104
mov ecx, esi
call fcn.00402cf0
push 0x104
push dword [esi]
push str._USERPROFILE_DropBox
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [esi]
test eax, eax
jne 0x5af282
xor ecx, ecx
jmp 0x5af298
push dword [eax - 8]
push eax
call fcn.0054c667
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x5af1b3
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x5af1b3
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str._OneDrive
push edi
call fcn.004044f0
add esp, 8
test al, al
je 0x5af342
mov edx, esi
mov ecx, 0x60cd70
call fcn.005aba10
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x5af403
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftOneDriveAccountsPersonal
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x5af403
mov edx, str.Userfolder
push esi
call fcn.005b0e00
add esp, 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str._Box_Sync
push edi
call fcn.004044f0
add esp, 8
test al, al
je 0x5af403
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x104
or ecx, eax
jge 0x5af37a
push 0x104
mov ecx, esi
call fcn.00402cf0
push 0x104
push dword [esi]
push str._USERPROFILE_Box_Sync
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, str.AdobeDC
lea ecx, [ecx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x5af3d6
test dx, dx
je 0x5af3d2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x5af3d6
add ecx, 4
add eax, 4
test dx, dx
jne 0x5af3b0
xor eax, eax
jmp 0x5af3db
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
je 0x5af403
lea ecx, [ebp - 0x10]
call fcn.005aa050
push eax
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00403220
lea ecx, [ebp - 0x10]
call fcn.00402b90
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret